3 CFLAGS = '-DVERSION="$(VERSION)"' -Wall
6 DOCS = tig.1.txt tig.1 tig.1.html
7 VERSION = $(shell git-describe)
11 all-debug: CFLAGS += $(DFLAGS)
15 for prog in $(PROGS); do \
16 install $$prog $(PREFIX)/bin; \
21 for doc in $(DOCS); do \
23 *.1) install $$doc $(PREFIX)/man/man1 ;; \
28 rm -f $(PROGS) $(DOCS)
30 .PHONY: all docs install clean
35 sed -n '/\/\*\*/,/\*\*\//p' < $< | \
36 sed 's/.*\*\*\///' | \
37 sed '/^[^*]*\*\*/d' | \
38 sed 's/\*\///;s/^[^*]*\* *//' > $@
41 asciidoc -b xhtml11 -d manpage $<
44 asciidoc -b docbook -d manpage $<