neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 97ded7c1c37078d34c0213d72777fdff3b6aebda
parent 96a24212fda0047a7cd5d79cc43377ce24c1f85c
Author: Chris Pickel <sfiera@macports.org>
Date:   Sat,  8 Sep 2007 11:34:11 +0200

Makefile: add support for DESTDIR

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

Diffstat:
MMakefile | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 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