Makefile: Add PREFIX variable.

This commit is contained in:
Joey Hess 2010-12-11 17:29:50 -04:00
parent 77e52a52dd
commit 10484a69b8
2 changed files with 9 additions and 7 deletions

View file

@ -1,17 +1,18 @@
PREFIX=/usr
GHCMAKE=ghc -Wall -odir build -hidir build -O2 --make
all: git-annex docs
ghcmake=ghc -Wall -odir build -hidir build -O2 --make
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:

1
debian/changelog vendored
View file

@ -3,6 +3,7 @@ git-annex (0.12) UNRELEASED; urgency=low
* Add --exclude option to exclude files from processing.
* mwdn2man: Fix a bug in newline supression. Closes: #606578
* Bugfix to git annex add of an unlocked file in a subdir. Closes: #606579
* Makefile: Add PREFIX variable.
-- Joey Hess <joeyh@debian.org> Wed, 08 Dec 2010 14:06:47 -0400