1.SUFFIXES: .xml .html .txt .adoc .1 2 3.xml.html: 4 xmlto xhtml-nochunks $< 5 6.xml.1: 7 xmlto man $< 8 9.xml.txt: 10 xmlto txt $< 11 12.adoc.html: 13 asciidoc $< 14 15all: allhtml manpages 16 17# The distinction between XMLMAN and XMLINTERNAL is because 18# some pages shouldn't be installed as part of a binary package; 19# they're just for test-pattern generators. 20XMLMAN = \ 21 gif2rgb.xml \ 22 gifbuild.xml \ 23 gifclrmp.xml \ 24 gifecho.xml \ 25 giffix.xml \ 26 gifinto.xml \ 27 giflib.xml \ 28 giftext.xml \ 29 giftool.xml 30XMLINTERNAL = \ 31 gifbg.xml \ 32 gifcolor.xml \ 33 gifhisto.xml \ 34 gifwedge.xml 35XMLDOC = intro.xml gif_lib.xml 36XMLALL = $(XMLMAN) $(XMLINTERNAL) $(XMLDOC) 37 38# Philosophical choice: the website gets the internal manual pages 39allhtml: $(XMLALL:.xml=.html) $(XMLINTERNAL:.xml=.html) 40 41manpages: $(XMLMAN:.xml=.1) $(XMLINTERNAL:.xml=.1) 42 43# Prepare the website directory to deliver an update. 44# ImageMagick and asciidoc are required. 45website: allhtml 46 rm -fr staging; mkdir staging; 47 cp -r $(XMLALL:.xml=.html) gifstandard whatsinagif staging 48 cp index.html.in staging/index.html 49 convert ../pic/gifgrid.gif -resize 50x50 staging/giflib-logo.gif 50 asciidoc - <../history.adoc >staging/history.html 51