* [PATCH 1/2] Makefile target to support just libvolume_id
@ 2007-10-26 19:00 Dan Nicholson
0 siblings, 0 replies; only message in thread
From: Dan Nicholson @ 2007-10-26 19:00 UTC (permalink / raw)
To: linux-hotplug
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 <dbn.lists@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-26 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 19:00 [PATCH 1/2] Makefile target to support just libvolume_id Dan Nicholson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).