+$(OBJECTS): cgit.h git/xdiff/lib.a git/libgit.a VERSION
+
+git/xdiff/lib.a: | git
+
+git/libgit.a: | git
+
+git:
+ cd git && $(MAKE) xdiff/lib.a
+ cd git && $(MAKE) libgit.a
+
+test: all
+ $(MAKE) -C tests
+
+install: all
+ mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)
+ install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
+ install cgit.css $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css
+ install cgit.png $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.png
+
+uninstall:
+ rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
+ rm -f $(CGIT_SCRIPT_PATH)/cgit.css
+ rm -f $(CGIT_SCRIPT_PATH)/cgit.png