mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
Makefile: add support for DESTDIR
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
96a24212fd
commit
97ded7c1c3
14
Makefile
14
Makefile
@ -49,15 +49,15 @@ git:
|
|||||||
cd git && $(MAKE) libgit.a
|
cd git && $(MAKE) libgit.a
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(CGIT_SCRIPT_PATH)
|
mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)
|
||||||
install cgit $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
||||||
install cgit.css $(CGIT_SCRIPT_PATH)/cgit.css
|
install cgit.css $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css
|
||||||
rm -rf $(CACHE_ROOT)/*
|
rm -rf $(DESTDIR)$(CACHE_ROOT)/*
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
||||||
rm -f $(CGIT_SCRIPT_PATH)/cgit.css
|
rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css
|
||||||
rm -rf $(CACHE_ROOT)
|
rm -rf $(DESTDIR)$(CACHE_ROOT)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f cgit VERSION *.o
|
rm -f cgit VERSION *.o
|
||||||
|
Loading…
Reference in New Issue
Block a user