3 CFLAGS = -g '-DVERSION="$(VERSION)"' -Wall
5 DOCS = tig.1.txt tig.1 tig.1.html
6 VERSION = $(shell git-describe)
12 for prog in $(PROGS); do \
13 install $$prog $(PREFIX)/bin; \
17 for doc in $(DOCS); do \
19 *.1) install $$doc $(PREFIX)/man/man1 ;; \
24 rm -f $(PROGS) $(DOCS)
26 .PHONY: all docs install clean
31 sed -n '/\/\*\*/,/\*\*\//p' < $< | \
32 sed 's/.*\*\*\///' | \
33 sed '/^[^*]*\*\*/d' | \
34 sed 's/\*\///;s/^[^*]*\* *//' > $@
37 asciidoc -b xhtml11 -d manpage $<
40 asciidoc -b docbook -d manpage $<