r5982 - trunk/eda/fped
werner at docs.openmoko.org
werner at docs.openmoko.org
Tue Oct 12 17:45:10 CEST 2010
Author: werner
Date: 2010-10-12 17:45:09 +0200 (Tue, 12 Oct 2010)
New Revision: 5982
Modified:
trunk/eda/fped/Makefile
Log:
add DESTDIR to Makefile.
the Debian package is need DESTDIR and Debian also install binary
to /usr/bin/
Signed-off-by: Xiangfu Liu <xiangfu at sharism.cc>
Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile 2010-10-12 15:44:21 UTC (rev 5981)
+++ trunk/eda/fped/Makefile 2010-10-12 15:45:09 UTC (rev 5982)
@@ -10,7 +10,7 @@
# (at your option) any later version.
#
-PREFIX = /usr/local
+PREFIX ?= /usr/local
UPLOAD = werner at sita.openmoko.org:public_html/fped/
@@ -182,10 +182,11 @@
# ----- Install / uninstall ---------------------------------------------------
install: all
- install -m 755 fped $(PREFIX)/bin/
+ mkdir -p $(DESTDIR)/$(PREFIX)/bin/
+ install -m 755 fped $(DESTDIR)/$(PREFIX)/bin/
uninstall:
- rm -f $(PREFIX)/bin/fped
+ rm -f $(DESTDIR)/$(PREFIX)/bin/fped
# ----- SVN update ------------------------------------------------------------
More information about the commitlog
mailing list