summaryrefslogtreecommitdiffabout
path: root/Makefile
authorLars Hjemli <hjemli@gmail.com>2007-05-15 00:13:11 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-15 07:09:42 (UTC)
commite903011c4457c24c0095f270ca5e78c40729434f (patch) (unidiff)
tree255f128dfaf81f2fd03bb2216039bbf8f38ef167 /Makefile
parentcfd2aa079770ddb4c93d5995b2cd7b5f25da3681 (diff)
downloadcgit-e903011c4457c24c0095f270ca5e78c40729434f.zip
cgit-e903011c4457c24c0095f270ca5e78c40729434f.tar.gz
cgit-e903011c4457c24c0095f270ca5e78c40729434f.tar.bz2
Use tables and css to create the diffstat graph, fix scaling
There was no need to use image-files for the graphs, so lets drop them. At the same time, fix scaling of the graphs so that the full width is used only if atleast 100 LOC are changed in one of the files. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 96d68cb..aa7146d 100644
--- a/Makefile
+++ b/Makefile
@@ -39,47 +39,46 @@ INITGIT = ./submodules.sh -i
39endif 39endif
40 40
41 41
42# 42#
43# basic build rules 43# basic build rules
44# 44#
45all: cgit 45all: cgit
46 46
47cgit: cgit.c cgit.h $(OBJECTS) 47cgit: cgit.c cgit.h $(OBJECTS)
48 $(CC) $(CFLAGS) cgit.c -o cgit $(OBJECTS) $(EXTLIBS) 48 $(CC) $(CFLAGS) cgit.c -o cgit $(OBJECTS) $(EXTLIBS)
49 49
50$(OBJECTS): cgit.h git/libgit.a 50$(OBJECTS): cgit.h git/libgit.a
51 51
52git/libgit.a: 52git/libgit.a:
53 $(INITGIT) 53 $(INITGIT)
54 $(MAKE) -C git 54 $(MAKE) -C git
55 55
56# 56#
57# phony targets 57# phony targets
58# 58#
59install: all clean-cache 59install: all clean-cache
60 mkdir -p $(prefix) 60 mkdir -p $(prefix)
61 install cgit $(prefix)/$(CGIT_SCRIPT_NAME) 61 install cgit $(prefix)/$(CGIT_SCRIPT_NAME)
62 install cgit.css $(prefix)/cgit.css 62 install cgit.css $(prefix)/cgit.css
63 install add.png del.png $(prefix)/
64 63
65clean-cgit: 64clean-cgit:
66 rm -f cgit *.o 65 rm -f cgit *.o
67 66
68distclean-cgit: clean-cgit 67distclean-cgit: clean-cgit
69 git clean -d -x 68 git clean -d -x
70 69
71clean-sub: 70clean-sub:
72 $(MAKE) -C git clean 71 $(MAKE) -C git clean
73 72
74distclean-sub: clean-sub 73distclean-sub: clean-sub
75 $(shell cd git && git clean -d -x) 74 $(shell cd git && git clean -d -x)
76 75
77clean-cache: 76clean-cache:
78 rm -rf $(CACHE_ROOT)/* 77 rm -rf $(CACHE_ROOT)/*
79 78
80clean: clean-cgit clean-sub 79clean: clean-cgit clean-sub
81 80
82distclean: distclean-cgit distclean-sub 81distclean: distclean-cgit distclean-sub
83 82
84.PHONY: all install clean clean-cgit clean-sub clean-cache \ 83.PHONY: all install clean clean-cgit clean-sub clean-cache \
85 distclean distclean-cgit distclean-sub 84 distclean distclean-cgit distclean-sub