mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 08:38:26 +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:
parent
4d175e5aef
commit
585ea5595d
7
Makefile
7
Makefile
@ -10,7 +10,7 @@
|
||||
# (at your option) any later version.
|
||||
#
|
||||
|
||||
PREFIX = /usr/local
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
UPLOAD = werner@sita.openmoko.org:public_html/fped/
|
||||
|
||||
@ -182,10 +182,11 @@ spotless: clean
|
||||
# ----- 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 ------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user