summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: 9750a23941283cbc98b53166eb419aa75a380c81 (plain)
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
# This builds the dependent parts of the website files.  It's a bit of
# a kluge at the moment; it really ought to be generated by autoconf, in
# case xmlto is not available but xsltproc is.

%.html: ../%.xml
	xmlto xhtml-nochunks $<

XML = \
	gpsd.xml \
	gps.xml \
	cgpxlogger.xml \
	libgps.xml \
	libgpsmm.xml \
	libgpsd.xml \
	sirfmon.xml \
	rtcmdecode.xml \
	gpsprof.xml \
	gpsfake.xml \
	gpsctl.xml \
	gpscat.xml \
	gpspipe.xml \
	gpsflash.xml \
	rtcm-104.xml \
	srec.xml

html: index.html $(XML:.xml=.html)

index.html: index.html.in
	sed -e "/@DATE@/s//`date '+%B %d, %Y'`/" <index.html.in >index.html

CHANGES: ../gpsd.spec.in
	sed <../gpsd.spec.in -e '1,/%changelog/d' >CHANGES

# Re-do this and upload it when adding new manuals
sums: 
	sha1sum `find vendor-docs -type f -name "*.pdf" -print` >checksums

clean:
	rm -f $(XML:.xml=.html)