summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-20 16:02:41 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-20 16:02:41 -0400
commitdb960871fd56176dcf6d6bb5f09b31c8dad8eed8 (patch)
tree877fcd047f6eb89990e0fde0487c6af15d346ee9 /Makefile
parent0b495e3b8140d17de2b7f52dddd3ac9f4a15584d (diff)
use a stamp file to avoid running ghc in make install
That fails when make install is run sudoed, but cabal has been used to install dependencies in a user's home directory.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9997ed3a0..4dc28e929 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,8 @@ ifdef VIM
all=fast
endif
-all: $(all)
+build: $(all)
+ touch build-stamp
sources: $(sources)
@@ -74,7 +75,7 @@ install-docs: docs install-mans
rsync -a --delete html/ $(DESTDIR)$(PREFIX)/share/doc/git-annex/html/; \
fi
-install: all install-docs
+install: build-stamp install-docs
install -d $(DESTDIR)$(PREFIX)/bin
install $(bins) $(DESTDIR)$(PREFIX)/bin
ln -sf git-annex $(DESTDIR)$(PREFIX)/bin/git-annex-shell
@@ -115,7 +116,7 @@ docs: $(mans)
clean:
rm -rf tmp $(bins) $(mans) test configure *.tix .hpc $(sources) \
- doc/.ikiwiki html dist $(clibs)
+ doc/.ikiwiki html dist $(clibs) build-stamp
sdist: clean $(mans)
./make-sdist.sh