]> git.cameronkatri.com Git - cgit.git/blob - Makefile
Replace useless make rules with generic $(OBJECTS) dependency
[cgit.git] / Makefile
1
2 INSTALL_BIN = /var/www/htdocs/cgit.cgi
3 INSTALL_CSS = /var/www/htdocs/cgit.css
4
5 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
6 OBJECTS = cgit.o config.o html.o
7
8 all: cgit
9
10 install: all
11 install cgit $(INSTALL_BIN)
12 install cgit.css $(INSTALL_CSS)
13
14 clean:
15 rm -f cgit *.o
16
17 cgit: $(OBJECTS)
18 $(CC) -o cgit $(OBJECTS) $(EXTLIBS)
19
20 $(OBJECTS): cgit.h git.h