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
; \
20 for doc in
$(DOCS
); do \
22 *.1) install $$doc $(PREFIX
)/man
/man1
;; \
27 rm -f
$(PROGS
) $(DOCS
)
29 .PHONY
: all docs
install clean
34 sed
-n
'/\/\*\*/,/\*\*\//p' < $< | \
35 sed
's/.*\*\*\///' | \
36 sed
'/^[^*]*\*\*/d' | \
37 sed
's/\*\///;s/^[^*]*\* *//' > $@
40 asciidoc
-b xhtml11
-d manpage
$<
43 asciidoc
-b docbook
-d manpage
$<