The pager is begining to work. :)
[tig] / Makefile
1 LDFLAGS = -lcurses
2 CFLAGS = -g '-DVERSION="$(VERSION)"' -Wall
3 PROGS = tig
4 DOCS = tig.1.txt tig.1 tig.1.html
5 VERSION = $(shell git-describe)
6
7 all: $(PROGS)
8 docs: $(DOCS)
9
10 install: all
11 for prog in $(PROGS); do \
12 install $$prog $(HOME)/bin; \
13 done
14
15 clean:
16 rm -f $(PROGS) $(DOCS)
17
18 .PHONY: all docs install clean
19
20 tig: tig.c
21
22 tig.1.txt: tig.c
23 sed -n '/^\/\*\*/,/\*\*\//p' < $< | \
24 sed '/^[^*]\*\*/d' | \
25 sed 's/\*\///;s/^[^*]*\* *//' > $@
26
27 %.1.html : %.1.txt
28 asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
29
30 %.1.xml : %.1.txt
31 asciidoc -b docbook -d manpage -f asciidoc.conf $<
32
33 %.1 : %.1.xml
34 xmlto man $<