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