1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-18 09:35:20 +02:00

add DESTDIR to Makefile.

the Debian package is need DESTDIR and Debian also install binary 
to /usr/bin/

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5982 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner 2010-10-12 15:45:09 +00:00
parent 4d175e5aef
commit 585ea5595d

View File

@ -10,7 +10,7 @@
# (at your option) any later version. # (at your option) any later version.
# #
PREFIX = /usr/local PREFIX ?= /usr/local
UPLOAD = werner@sita.openmoko.org:public_html/fped/ UPLOAD = werner@sita.openmoko.org:public_html/fped/
@ -182,10 +182,11 @@ spotless: clean
# ----- Install / uninstall --------------------------------------------------- # ----- Install / uninstall ---------------------------------------------------
install: all install: all
install -m 755 fped $(PREFIX)/bin/ mkdir -p $(DESTDIR)/$(PREFIX)/bin/
install -m 755 fped $(DESTDIR)/$(PREFIX)/bin/
uninstall: uninstall:
rm -f $(PREFIX)/bin/fped rm -f $(DESTDIR)/$(PREFIX)/bin/fped
# ----- SVN update ------------------------------------------------------------ # ----- SVN update ------------------------------------------------------------