diff options
author | Chris Pickel | 2007-09-08 11:34:11 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-09-08 11:34:27 +0200 |
commit | 97ded7c1c37078d34c0213d72777fdff3b6aebda (patch) | |
tree | 941cd5004d0a7be34723525ad6d226ac2d2220a0 | |
parent | cgit v0.6 (diff) | |
download | cgit-97ded7c1c37078d34c0213d72777fdff3b6aebda.tar.gz cgit-97ded7c1c37078d34c0213d72777fdff3b6aebda.zip |
Makefile: add support for DESTDIR
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile index 2fbdf67..d95a5a3 100644 --- a/Makefile +++ b/Makefile | |||
@@ -49,15 +49,15 @@ git: | |||
49 | cd git && $(MAKE) libgit.a | 49 | cd git && $(MAKE) libgit.a |
50 | 50 | ||
51 | install: all | 51 | install: all |
52 | mkdir -p $(CGIT_SCRIPT_PATH) | 52 | mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH) |
53 | install cgit $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) | 53 | install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
54 | install cgit.css $(CGIT_SCRIPT_PATH)/cgit.css | 54 | install cgit.css $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css |
55 | rm -rf $(CACHE_ROOT)/* | 55 | rm -rf $(DESTDIR)$(CACHE_ROOT)/* |
56 | 56 | ||
57 | uninstall: | 57 | uninstall: |
58 | rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) | 58 | rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) |
59 | rm -f $(CGIT_SCRIPT_PATH)/cgit.css | 59 | rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css |
60 | rm -rf $(CACHE_ROOT) | 60 | rm -rf $(DESTDIR)$(CACHE_ROOT) |
61 | 61 | ||
62 | clean: | 62 | clean: |
63 | rm -f cgit VERSION *.o | 63 | rm -f cgit VERSION *.o |