summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
blob: b23991d52b245dd3ae267941f83e540bf0f4b2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DOC_SRC=$(wildcard git*.txt)
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))

all: $(DOC_HTML) $(DOC_MAN)

html: $(DOC_HTML)

man: $(DOC_MAN)

git-%: %.c $(LIB_FILE)
	$(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)

clean:
	rm -f *.xml *.html *.1

%.html : %.txt
	asciidoc -b css-embedded -d manpage $<

%.1 : %.xml
	xmlto man $<

%.xml : %.txt
	asciidoc -b docbook -d manpage $<