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
's/.*\*\*\///' | \
25 sed
'/^[^*]*\*\*/d' | \
26 sed
's/\*\///;s/^[^*]*\* *//' > $@
29 asciidoc
-b xhtml11
-d manpage
-f asciidoc.conf
$<
32 asciidoc
-b docbook
-d manpage
-f asciidoc.conf
$<