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.
#
QUIET_SUBDIR0 = +@subdir=
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
$(MAKE) $(PRINT_DIR) -C $$subdir
+ QUIET_TAGS = @echo ' ' TAGS $@;
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
get-git:
curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git
+
+tags:
+ $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags