diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-11 17:29:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-11 17:29:50 -0400 |
commit | 10484a69b8a7617fea5ce7ba95e31fe1a9eff7b4 (patch) | |
tree | 2b948b4a5e7f6bb66bba5ac885e0dc543869cb41 /Makefile | |
parent | 77e52a52dd2f77e5acc0643673169b4e1d2550f9 (diff) |
Makefile: Add PREFIX variable.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1,17 +1,18 @@ -all: git-annex docs +PREFIX=/usr +GHCMAKE=ghc -Wall -odir build -hidir build -O2 --make -ghcmake=ghc -Wall -odir build -hidir build -O2 --make +all: git-annex docs SysConfig.hs: configure.hs - $(ghcmake) configure + $(GHCMAKE) configure ./configure git-annex: SysConfig.hs - $(ghcmake) git-annex + $(GHCMAKE) git-annex install: - install -d $(DESTDIR)/usr/bin - install git-annex $(DESTDIR)/usr/bin + install -d $(DESTDIR)$(PREFIX)/bin + install git-annex $(DESTDIR)$(PREFIX)/bin # If ikiwiki is available, build static html docs suitable for being # shipped in the software package. @@ -22,7 +23,7 @@ IKIWIKI=ikiwiki endif test: - $(ghcmake) test + $(GHCMAKE) test ./test docs: |