linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Nicholson <dbn.lists@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH 1/2] Makefile target to support just libvolume_id
Date: Fri, 26 Oct 2007 19:00:37 +0000	[thread overview]
Message-ID: <1193425238-4278-2-git-send-email-dbn.lists@gmail.com> (raw)

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

                 reply	other threads:[~2007-10-26 19:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1193425238-4278-2-git-send-email-dbn.lists@gmail.com \
    --to=dbn.lists@gmail.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).