diff options
author | Chris Pickel <sfiera@macports.org> | 2007-09-08 11:34:11 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-09-08 11:34:27 +0200 |
commit | 97ded7c1c37078d34c0213d72777fdff3b6aebda (patch) | |
tree | 941cd5004d0a7be34723525ad6d226ac2d2220a0 /Makefile | |
parent | cgit v0.6 (diff) | |
download | cgit-pink-97ded7c1c37078d34c0213d72777fdff3b6aebda.tar.gz cgit-pink-97ded7c1c37078d34c0213d72777fdff3b6aebda.zip |
Makefile: add support for DESTDIR
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-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: cd git && $(MAKE) libgit.a install: all - mkdir -p $(CGIT_SCRIPT_PATH) - install cgit $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) - install cgit.css $(CGIT_SCRIPT_PATH)/cgit.css - rm -rf $(CACHE_ROOT)/* + mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH) + install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) + install cgit.css $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css + rm -rf $(DESTDIR)$(CACHE_ROOT)/* uninstall: - rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) - rm -f $(CGIT_SCRIPT_PATH)/cgit.css - rm -rf $(CACHE_ROOT) + rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME) + rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css + rm -rf $(DESTDIR)$(CACHE_ROOT) clean: rm -f cgit VERSION *.o |