X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/7996157f14d99ee6d26c042816e12bd9089c1efb..c0a92e82da3063efc230538ba109ff95aa59589a:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index eac24ad..bbce29d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CGIT_VERSION = v0.9.0.3 +CGIT_VERSION = v0.9.1 CGIT_SCRIPT_NAME = cgit.cgi CGIT_SCRIPT_PATH = /var/www/htdocs/cgit CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH) @@ -13,7 +13,7 @@ pdfdir = $(docdir) mandir = $(prefix)/share/man SHA1_HEADER = GIT_VER = 1.7.4 -GIT_URL = http://hjemli.net/git/git/snapshot/git-$(GIT_VER).tar.bz2 +GIT_URL = https://github.com/git/git/archive/v$(GIT_VER).tar.gz INSTALL = install MAN5_TXT = $(wildcard *.5.txt) MAN_TXT = $(MAN5_TXT) @@ -49,6 +49,13 @@ ifeq ($(uname_O),Cygwin) NEEDS_LIBICONV = YesPlease endif +ifeq ($(uname_S),$(filter $(uname_S),FreeBSD OpenBSD)) + # Apparantly libiconv is installed in /usr/local on BSD + LDFLAGS ?= -L/usr/local/lib + CFLAGS ?= -I/usr/local/include + NEEDS_LIBICONV = yes +endif + # # Let the user override the above settings. # @@ -73,6 +80,7 @@ ifndef V QUIET_SUBDIR0 = +@subdir= QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \ $(MAKE) $(PRINT_DIR) -C $$subdir + QUIET_TAGS = @echo ' ' TAGS $@; endif # @@ -124,7 +132,7 @@ endif .PHONY: all libgit test install uninstall clean force-version get-git \ doc clean-doc install-doc install-man install-html install-pdf \ - uninstall-doc uninstall-man uninstall-html uninstall-pdf + uninstall-doc uninstall-man uninstall-html uninstall-pdf tags all: cgit @@ -235,10 +243,13 @@ $(DOC_PDF): %.pdf : %.txt a2x -f pdf cgitrc.5.txt clean: clean-doc - rm -f cgit VERSION *.o *.d + rm -f cgit VERSION *.o *.d tags clean-doc: rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo get-git: - curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git + curl -L $(GIT_URL) | tar -xzf - && rm -rf git && mv git-$(GIT_VER) git + +tags: + $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags