2 CFLAGS = -g '-DVERSION="$(VERSION)"' -Wall
4 DOCS = tig.1.txt tig.1 tig.1.html
5 VERSION = $(shell git-describe)
11 for prog in $(PROGS); do \
12 install $$prog $(HOME)/bin; \
16 rm -f $(PROGS) $(DOCS)
18 .PHONY: all docs install clean
23 sed -n '/^\/\*\*/,/\*\*\//p' < $< | \
24 sed '/^[^*]\*\*/d' | \
25 sed 's/\*\///;s/^[^*]*\* *//' > $@
28 asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
31 asciidoc -b docbook -d manpage -f asciidoc.conf $<