summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-04-06 10:10:41 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-04-06 10:10:41 -0400
commit218a70e68b017eeee3075f34d613c7142f94b6cb (patch)
treef7c3d2eb424e6324b088ea7797e14df0dc083ccc /SConstruct
parent11600160e713e9956351fd894791c52e9af2d205 (diff)
downloadgpsd-218a70e68b017eeee3075f34d613c7142f94b6cb.tar.gz
asciidoc may not be present. Cope.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 7 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index 3085596f..97c2591b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -953,6 +953,7 @@ env.Alias('testregress', check)
# The website directory
#
# None of these productions are fired by default.
+# The content they handle is the GPSD website, not included in release tarballs.
env.Alias('website', Split('''
www/gpscat.html www/gpsctl.html www/gpsdecode.html
@@ -969,11 +970,12 @@ env.Alias('website', Split('''
'''))
# asciidoc documents
-for stem in ['AIVDM', 'NMEA',
- 'protocol-evolution', 'protocol-transition'
- 'client-howto']:
- env.Command('www/%s.html' % stem, 'www/%s.txt' % stem,
- ['asciidoc -a toc -o www/%s.html www/%s.txt' % (stem, stem)])
+if env.WhereIs('asciidoc'):
+ for stem in ['AIVDM', 'NMEA',
+ 'protocol-evolution', 'protocol-transition'
+ 'client-howto']:
+ env.Command('www/%s.html' % stem, 'www/%s.txt' % stem,
+ ['asciidoc -a toc -o www/%s.html www/%s.txt' % (stem, stem)])
if htmlbuilder:
# DocBook documents