about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Pickel <sfiera@macports.org>2007-09-08 11:34:11 +0200
committerLars Hjemli <hjemli@gmail.com>2007-09-08 11:34:27 +0200
commit97ded7c1c37078d34c0213d72777fdff3b6aebda (patch)
tree941cd5004d0a7be34723525ad6d226ac2d2220a0 /Makefile
parentcgit v0.6 (diff)
downloadcgit-pink-97ded7c1c37078d34c0213d72777fdff3b6aebda.tar.gz
cgit-pink-97ded7c1c37078d34c0213d72777fdff3b6aebda.zip
Makefile: add support for DESTDIR
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'Makefile')
-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
@@ -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
2016-09-08Rename colorscheme to lameJune McEnroe 2016-09-04Simplify colors syntax in zsh promptJune McEnroe 2016-08-29Color rubyStringDelimiter as StringJune McEnroe 2016-08-24Highlight rubyDefine as StructureJune McEnroe 2016-08-23Remove scroll bindings from nvim configJune McEnroe 2016-08-17Highlight Search with black foregroundJune McEnroe 2016-08-15Remove gruvboxJune McEnroe 2016-08-04Remove march from SSH configJune McEnroe 2016-08-01Disable tab indicators in iTermJune McEnroe 2016-07-30Color PreProc DarkGreenJune McEnroe 2016-07-29Color Structure and Typedef in grayJune McEnroe 2016-07-27Color comments DarkBlue and LightBlueJune McEnroe 2016-07-27Color macros in yellowJune McEnroe 2016-07-26Colorscheme colors and schemesJune McEnroe 2016-07-26Add ''subtle'' colorschemeJune McEnroe I'm just trying this out. 2016-07-26Add htoprcJune McEnroe 2016-07-24Add may and refactor ssh configJune McEnroe 2016-07-18Disable cursorlineJune McEnroe 2016-07-18Use hard constrast gruvbox darkJune McEnroe 2016-07-15Remove vim configurationJune McEnroe 2016-07-15Add readline to README configurations listJune McEnroe 2016-07-15Add vendor script to READMEJune McEnroe 2016-07-15Pull latest pathogen and gruvboxJune McEnroe