Skip to contentSkip to conversation

Makefile target to support just libvolume_id

PATCH In review Dan Nicholson 1 participant 1 message Oct 26, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Makefile target to support just libvolume_id

Some external programs such as util-linux-ng depend on just libvolume_id and not the full udev installation. Specific Makefile targets are created to directly build and install the library without passing many variables to make. Usage is straightforward:

    $ make libvolume_id
    $ make install-libvolume_id
---
 Makefile |   17 +++++++++++++++++
 README   |    5 +++++
 2 files changed, 22 insertions(+), 0 deletions(-)
Makefile +17 -0
index 0c143d6..3b0f9d2 100644
@@ -310,6 +310,23 @@ install: all install-bin install-config install-man
 uninstall: uninstall-bin uninstall-man
 .PHONY: uninstall
 
+# Special targets to build just libvolume_id
+libvolume_id:
+	$(MAKE) CC="$(CC)" \
+		CFLAGS="$(CFLAGS)" \
+		LD="$(LD)" \
+		LDFLAGS="$(LDFLAGS)" \
+		AR="$(AR)" \
+		RANLIB="$(RANLIB)" \
+		LIB_OBJS="$(LIB_OBJS)" \
+		LIBUDEV="$(PWD)/$(LIBUDEV)" \
+		-C extras/volume_id/lib
+.PHONY: libvolume_id
+
+install-libvolume_id: libvolume_id
+	$(MAKE) -C extras/volume_id/lib install
+.PHONY: install-libvolume_id
+
 test tests: all
 	@ cd test && ./udev-test.pl
 	@ cd test && ./udevstart-test.pl
README +5 -0
index b37d0d5..606afbc 100644
@@ -89,6 +89,11 @@ Installation:
     software that depends on the data udev has collected from the devices
     and should be installed by default with every udev installation.
 
+  - There is a specific target for building and installing libvolume_id to
+    support external programs that do not require the full udev install.
+    This can be performed with `make libvolume_id' and
+    `make install-libvolume_id'.
+
 Please direct any comment/question/concern to the linux-hotplug-devel mailing list at:
   [email protected]
 
Signature · 12 lines
1.5.3.2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel