6 DOCS = tig.1.txt tig.1.html tig.1 README.html
8 ifneq (,$(wildcard .git))
9 CFLAGS += '-DVERSION="$(shell git-describe)"'
14 all-debug: CFLAGS += $(DFLAGS)
18 for prog in $(PROGS); do \
19 install $$prog $(PREFIX)/bin; \
23 for doc in $(DOCS); do \
25 *.1) install $$doc $(PREFIX)/man/man1 ;; \
30 rm -f $(PROGS) $(DOCS) core
33 aspell --lang=en --check tig.1.txt
35 .PHONY: all docs install clean
40 sed -n '/\/\*\*/,/\*\*\//p' < $< | \
41 sed 's/.*\*\*\///' | \
42 sed '/^[^*]*\*\*/d' | \
43 sed 's/\*\///;s/^[^*]*\* *//' > $@
46 asciidoc -b xhtml11 -d article -f web.conf $<
49 asciidoc -b xhtml11 -d manpage $<
52 asciidoc -b docbook -d manpage $<