X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/74620f12e4f7e91cb0a0b4ca731e07272d1b65f6..7c849d94ec1cfecdec5a88d49f5af5c98f96ebca:/Makefile diff --git a/Makefile b/Makefile index 81ebb18..58a583b 100644 --- a/Makefile +++ b/Makefile @@ -5,16 +5,16 @@ INSTALL_CSS = /var/www/htdocs/cgit.css CACHE_ROOT = /var/cache/cgit EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto -OBJECTS = parsing.o html.o cache.o ui-shared.o ui-repolist.o +OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ + ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c CFLAGS += -Wall all: cgit -install: all +install: all clean-cache install cgit $(INSTALL_BIN) install cgit.css $(INSTALL_CSS) - rm -rf $(CACHE_ROOT)/* cgit: cgit.c cgit.h git.h $(OBJECTS) $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \ @@ -25,3 +25,6 @@ $(OBJECTS): cgit.h git.h .PHONY: clean clean: rm -f cgit *.o + +clean-cache: + rm -rf $(CACHE_ROOT)/*