Documentation / Makefileon commit Merge with http://members.cox.net/junkio/git-jc.git (f1a7eb3)
   1DOC_SRC=$(wildcard git*.txt)
   2DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
   3DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
   4
   5all: $(DOC_HTML) $(DOC_MAN)
   6
   7html: $(DOC_HTML)
   8
   9man: $(DOC_MAN)
  10
  11git-%: %.c $(LIB_FILE)
  12        $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
  13
  14clean:
  15        rm -f *.xml *.html *.1
  16
  17%.html : %.txt
  18        asciidoc -b css-embedded -d manpage $<
  19
  20%.1 : %.xml
  21        xmlto man $<
  22
  23%.xml : %.txt
  24        asciidoc -b docbook -d manpage $<