summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2fbdf67..d95a5a3 100644
--- a/Makefile
+++ b/Makefile
@@ -46,21 +46,21 @@ git/libgit.a: | git
git:
cd git && $(MAKE) xdiff/lib.a
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
cd git && $(MAKE) clean
distclean: clean