1DOC_SRC=$(wildcard git*.txt)
2DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
3DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
45
all: $(DOC_HTML) $(DOC_MAN)
67
html: $(DOC_HTML)
89
man: $(DOC_MAN)
1011
git-%: %.c $(LIB_FILE)
12$(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
1314
clean:
15rm -f *.xml *.html *.1
1617
%.html : %.txt
18asciidoc -b css-embedded -d manpage $<
1920
%.1 : %.xml
21xmlto man $<
2223
%.xml : %.txt
24asciidoc -b docbook -d manpage $<