aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index e863205..72a1cff 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
CGIT_VERSION = 0.1
-prefix = /var/www/htdocs/cgit
-gitsrc = ../git
-
+INSTALL_DIR = /var/www/htdocs/cgit
CACHE_ROOT = /var/cache/cgit
-EXTLIBS = $(gitsrc)/libgit.a $(gitsrc)/xdiff/lib.a -lz -lcrypto
+
+EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
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 ui-diff.o
@@ -17,11 +16,10 @@ endif
all: cgit
install: all clean-cache
- mkdir -p $(prefix)
- install cgit $(prefix)/cgit.cgi
- install cgit.css $(prefix)/cgit.css
+ install cgit $(INSTALL_DIR)/cgit.cgi
+ install cgit.css $(INSTALL_DIR)/cgit.css
-cgit: cgit.c cgit.h git.h $(OBJECTS) $(gitsrc)/libgit.a
+cgit: cgit.c cgit.h git.h $(OBJECTS)
$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
$(OBJECTS) $(EXTLIBS)
@@ -29,10 +27,6 @@ $(OBJECTS): cgit.h git.h
ui-diff.o: xdiff.h
-$(gitsrc)/libgit.a:
- $(MAKE) -C $(gitsrc)
-
-
.PHONY: clean
clean:
rm -f cgit *.o