summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2006-12-09 14:29:05 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2006-12-09 14:29:05 (UTC)
commitc76a52be5b5af940b8bcc9b3f554f4d44367506a (patch) (unidiff)
tree289a096a0e0642ad33c370762049a817d64989fe
parent0d169ada2ba81210ab1191a5f2212662e90db77e (diff)
downloadcgit-c76a52be5b5af940b8bcc9b3f554f4d44367506a.zip
cgit-c76a52be5b5af940b8bcc9b3f554f4d44367506a.tar.gz
cgit-c76a52be5b5af940b8bcc9b3f554f4d44367506a.tar.bz2
Replace useless make rules with generic $(OBJECTS) dependency
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1470c0a..4e72b07 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,20 @@
1 1
2INSTALL_BIN = /var/www/htdocs/cgit.cgi 2INSTALL_BIN = /var/www/htdocs/cgit.cgi
3INSTALL_CSS = /var/www/htdocs/cgit.css 3INSTALL_CSS = /var/www/htdocs/cgit.css
4 4
5EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto 5EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
6OBJECTS = cgit.o config.o html.o 6OBJECTS = cgit.o config.o html.o
7 7
8all: cgit 8all: cgit
9 9
10install: all 10install: all
11 install cgit $(INSTALL_BIN) 11 install cgit $(INSTALL_BIN)
12 install cgit.css $(INSTALL_CSS) 12 install cgit.css $(INSTALL_CSS)
13 13
14clean: 14clean:
15 rm -f cgit *.o 15 rm -f cgit *.o
16 16
17cgit: $(OBJECTS) 17cgit: $(OBJECTS)
18 $(CC) -o cgit $(OBJECTS) $(EXTLIBS) 18 $(CC) -o cgit $(OBJECTS) $(EXTLIBS)
19 19
20cgit.o: cgit.h git.h config.o html.o 20$(OBJECTS): cgit.h git.h
21
22config.o: cgit.h git.h html.c
23
24html.o: cgit.h git.h html.c