summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-26 21:00:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-26 21:00:52 +0200
commit382fc245366999b540bf547b9ccb2f9529a2116b (patch)
treee1c9b7bc4f19b2b80cfe378def0ea40a998ca2ab /Makefile
parentb1a2658b5ca2f54e3e378b0bc9a1741a81a10c03 (diff)
Slight makefile/manpage cleanups, release v1.1.1 while at it1.1.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index eb1d658..e5891da 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,21 @@
-prefix ?= /usr/local
+PREFIX ?= /usr/local
+
+basedir = ${DESTDIR}${PREFIX}
build/efa.1: bin/efa
mkdir -p build
pod2man $< > $@
install: build/efa.1
- mkdir -p $(prefix)/bin $(prefix)/share/man/man1
- cp bin/efa $(prefix)/bin/efa
- cp build/efa.1 $(prefix)/share/man/man1/efa.1
- chmod 755 $(prefix)/bin/efa
- chmod 644 $(prefix)/share/man/man1/efa.1
+ mkdir -p ${basedir}/bin ${basedir}/share/man/man1
+ cp bin/efa ${basedir}/bin/efa
+ cp build/efa.1 ${basedir}/share/man/man1/efa.1
+ chmod 755 ${basedir}/bin/efa
+ chmod 644 ${basedir}/share/man/man1/efa.1
uninstall:
- rm -f $(prefix)/bin/efa
- rm -f $(prefix)/share/man/man1/efa.1
+ rm -f ${basedir}/bin/efa
+ rm -f ${basedir}/share/man/man1/efa.1
clean:
rm -rf build