doc/Makefile
changeset 671 efa4a7e2f322
parent 465 f8cb8d082d40
child 1006 b0e581438835
equal deleted inserted replaced
670:4efb9b109292 671:efa4a7e2f322
     1 
     1 SOURCES=$(wildcard *.[0-9].txt)
     2 SOURCES=$(wildcard *.1.txt)
     2 MAN=$(SOURCES:%.txt=%)
     3 MAN=$(SOURCES:%.1.txt=%.1)
     3 HTML=$(SOURCES:%.txt=%.html)
     4 HTML=$(SOURCES:%.1.txt=%.1.html)
       
     5 
     4 
     6 all: man
     5 all: man
     7 
     6 
     8 man: $(MAN)
     7 man: $(MAN)
     9 
     8 
    10 html: $(HTML)
     9 html: $(HTML)
    11 
    10 
    12 %.1: %.1.xml
    11 %: %.xml
    13 	xmlto man $*.1.xml
    12 	xmlto man $*.xml
    14 
    13 
    15 %.1.xml: %.1.txt
    14 %.xml: %.txt
    16 	asciidoc -d manpage -b docbook $*.1.txt
    15 	asciidoc -d manpage -b docbook $*.txt
    17 
    16 
    18 %.1.html: %.1.txt
    17 %.html: %.txt
    19 	asciidoc -b html $*.1.txt
    18 	asciidoc -b html $*.txt
    20 
    19 
    21 clean:
    20 clean:
    22 	$(RM) $(MAN) $(MAN:%.1=%.1.xml) $(MAN:%.1=%.1.html)
    21 	$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)