File: Makefile

package info (click to toggle)
giflib 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,900 kB
  • sloc: ansic: 7,492; xml: 2,479; makefile: 389; javascript: 12; sh: 4
file content (59 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.SUFFIXES: .xml .html .txt .adoc .1 .7

.xml.html:
	xmlto xhtml-nochunks $<

.xml.1:
	xmlto man $<

.xml.7:
	xmlto man $<

.xml.txt:
	xmlto txt $<

.adoc.html:
	asciidoc $<

all: allhtml manpages

# The distinction between XMLMAN and XMLINTERNAL is because
# some pages shouldn't be installed as part of a binary package;
# they're just for test-pattern generators.
XMLMAN1 = \
	gif2rgb.xml \
	gifbuild.xml \
	gifclrmp.xml \
	giffilter.xml \
	giffix.xml \
	gifsponge.xml \
	giftext.xml \
	giftool.xml
XMLMAN7 = \
	giflib.xml
XMLINTERNAL = \
	gifbg.xml \
	gifcolor.xml \
	gifecho.xml \
	gifinto.xml \
	gifhisto.xml \
	gifwedge.xml
XMLDOC = intro.xml gif_lib.xml
XMLALL = $(XMLMAN1) $(XMLMAN7) $(XMLINTERNAL) $(XMLDOC)

# Logo image file for HTML docs
giflib-logo.gif: ../pic/gifgrid.gif
	convert $^ -resize 50x50 $@

# Philosophical choice: the website gets the internal manual pages
allhtml: $(XMLALL:.xml=.html)

manpages: $(XMLMAN1:.xml=.1) $(XMLMAN7:.xml=.7) $(XMLINTERNAL:.xml=.1)

# Prepare the website directory to deliver an update.
# ImageMagick and asciidoc are required.
website: allhtml
	rm -fr staging; mkdir staging; 
	cp -r $(XMLALL:.xml=.html) gifstandard whatsinagif giflib-logo.gif staging
	cp index.html.in staging/index.html
	asciidoc - <../history.adoc >staging/history.html