diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-03-23 10:50:55 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-03-23 10:50:55 +0100 |
commit | 2d82e6f0532295798adec25a52a7d70c85ba4bba (patch) | |
tree | dae46998c4f23ab0ad154ef677c62ca3694fead1 /extras/volume_id/Makefile | |
parent | ddb5a84c349f2f5aca2387d5c3bddc684e64aa84 (diff) |
volume_id: provide library
Diffstat (limited to 'extras/volume_id/Makefile')
-rw-r--r-- | extras/volume_id/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile index b72d5b11d9..88752b880e 100644 --- a/extras/volume_id/Makefile +++ b/extras/volume_id/Makefile @@ -1,12 +1,11 @@ # Makefile for udev extra invoked from the udev main Makefile # -# Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org> +# Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org> # # Released under the GNU General Public License, version 2. # PROG = vol_id -LIBVOLUME_ID = libvolume_id/libvolume_id.a GEN_HEADERS = MAN_PAGES = @@ -32,12 +31,12 @@ all: $(PROG) $(MAN_PAGES) $(E) " CC " $@ $(Q) $(CC) -c $(CFLAGS) $< -o $@ -$(LIBVOLUME_ID): +libvolume_id/libvolume_id.a: $(Q) $(MAKE) -C libvolume_id -$(PROG): %: $(HEADERS) %.o $(LIBVOLUME_ID) +$(PROG): %: $(HEADERS) %.o libvolume_id/libvolume_id.a $(E) " LD " $@ - $(Q) $(LD) $(LDFLAGS) $@.o $(LIBVOLUME_ID) -o $@ $(LIBUDEV) $(LIB_OBJS) + $(Q) $(LD) $(LDFLAGS) -o $@ $@.o $(LIBUDEV) libvolume_id/libvolume_id.a $(LIB_OBJS) ifneq ($(strip $(STRIPCMD)),) $(E) " STRIP " $@ $(Q) $(STRIPCMD) $@ @@ -56,11 +55,13 @@ clean: .PHONY: clean install-bin: all - $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG) + $(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(sbindir)/$(PROG) + $(MAKE) -C libvolume_id install .PHONY: install-bin uninstall-bin: - rm $(DESTDIR)$(sbindir)/$(PROG) + $(MAKE) -C libvolume_id uninstall .PHONY: uninstall-bin install-man: |