From: Aras Vaichas <arasv@magellan-technology.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] fix install/uninstall paths for cross compilation
Date: Wed, 26 Oct 2005 05:38:04 +0000 [thread overview]
Message-ID: <435F163C.3080306@magellan-technology.com> (raw)
This patch fixes some problems with installing EXTRAS and uninstalling binaries
and man pages when DESTDIR has been set e.g. for cross compilation, or creating
an initrd
regards,
Aras Vaichas
--- Makefile.orig 2005-10-26 13:49:47.000000000 +1000
+++ Makefile 2005-10-26 15:21:35.000000000 +1000
@@ -123,7 +123,7 @@
sbindir = ${exec_prefix}/sbin
usrbindir = ${exec_prefix}/usr/bin
usrsbindir = ${exec_prefix}/usr/sbin
-mandir = ${prefix}/usr/share/man
+mandir = ${DESTDIR}/usr/share/man
configdir = ${etcdir}/udev
udevdir = /dev
udevdb = ${udevdir}/.udevdb
@@ -390,31 +390,41 @@
$(INSTALL_PROGRAM) -D udevstart $(DESTDIR)$(sbindir)/udevstart
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
- $(MAKE) prefix=$(prefix) -C $$target $@; \
+ $(MAKE) DESTDIR=$(DESTDIR) prefix=$(prefix) -C $$target $@; \
done;
ifndef DESTDIR
- killall udevd
- rm -rf $(udevdb)
- $(sbindir)/udevd --daemon
+else
+ @echo; \
+ echo "You will have to manually restart udevd on the target"; \
+ echo
endif
.PHONY: install-bin
uninstall-bin:
- - rm -f $(sbindir)/udev
- - rm -f $(sbindir)/udevd
- - rm -f $(sbindir)/udevsend
- - rm -f $(sbindir)/udevinitsend
- - rm -f $(sbindir)/udeveventrecoreder
- - rm -f $(sbindir)/udevcontrol
- - rm -f $(sbindir)/udevstart
- - rm -f $(usrsbindir)/udevmonitor
- - rm -f $(usrbindir)/udevinfo
- - rm -f $(usrbindir)/udevtest
- - rm -rf $(udevdb)
+ - rm -f $(DESTDIR)$(sbindir)/udev
+ - rm -f $(DESTDIR)$(sbindir)/udevd
+ - rm -f $(DESTDIR)$(sbindir)/udevsend
+ - rm -f $(DESTDIR)$(sbindir)/udevinitsend
+ - rm -f $(DESTDIR)$(sbindir)/udeveventrecoreder
+ - rm -f $(DESTDIR)$(sbindir)/udevcontrol
+ - rm -f $(DESTDIR)$(sbindir)/udevstart
+ - rm -f $(DESTDIR)$(usrsbindir)/udevmonitor
+ - rm -f $(DESTDIR)$(usrbindir)/udevinfo
+ - rm -f $(DESTDIR)$(usrbindir)/udevtest
+ - rm -rf $(DESTDIR)$(udevdb)
+ifndef DESTDIR
- killall udevd
+else
+ @echo; \
+ echo "You will have to manually stop udevd on the target"; \
+ echo
+endif
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
- $(MAKE) prefix=$(prefix) -C $$target $@; \
+ $(MAKE) DESTDIR=$(DESTDIR) prefix=$(prefix) -C $$target $@; \
done;
.PHONY: uninstall-bin
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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
next reply other threads:[~2005-10-26 5:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-26 5:38 Aras Vaichas [this message]
2005-10-26 14:57 ` [PATCH] fix install/uninstall paths for cross compilation Kay Sievers
2005-10-27 0:59 ` Aras Vaichas
2005-10-31 1:56 ` Kay Sievers
2005-10-31 4:08 ` Aras Vaichas
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=435F163C.3080306@magellan-technology.com \
--to=arasv@magellan-technology.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.