diff options
Diffstat (limited to 'extras/volume_id/Makefile')
-rw-r--r-- | extras/volume_id/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile index 80f9755d19..6e5006594a 100644 --- a/extras/volume_id/Makefile +++ b/extras/volume_id/Makefile @@ -23,16 +23,21 @@ INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL} -all: $(PROG) $(MAN_PAGES) +all: lib $(PROG) $(MAN_PAGES) .PHONY: all .DEFAULT: all +.SUFFIXES: + %.o: %.c $(GEN_HEADERS) $(E) " CC " $@ $(Q) $(CC) -c $(CFLAGS) $< -o $@ -lib/libvolume_id.a: - $(Q) $(MAKE) -C lib +lib: + $(Q) $(MAKE) -C $@ +.PHONY: lib + +lib/libvolume_id.a: lib $(PROG): %: $(HEADERS) %.o lib/libvolume_id.a $(E) " LD " $@ |