From: Dan Nicholson Date: Fri, 26 Oct 2007 19:00:37 +0000 Subject: [PATCH 1/2] Makefile target to support just libvolume_id Message-Id: <1193425238-4278-2-git-send-email-dbn.lists@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 Signed-off-by: Dan Nicholson --- Makefile | 17 +++++++++++++++++ README | 5 +++++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 0c143d6..3b0f9d2 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README b/README index b37d0d5..606afbc 100644 --- a/README +++ b/README @@ -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: linux-hotplug-devel@lists.sourceforge.net -- 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel