work on docs
[pspp] / doc / automake.mk
index 4ecd6ff9c089cc5f2801f386ed429131ffb9e673..e99b82c6ee518e5b3aa4d645d164c84e775eac53 100644 (file)
@@ -138,6 +138,7 @@ FIGURE_SYNTAX = \
  doc/pspp-figures/ctables19.sps \
  doc/pspp-figures/ctables20.sps \
  doc/pspp-figures/ctables21.sps \
+ doc/pspp-figures/ctables22.sps \
  doc/pspp-figures/crosstabs.sps \
  doc/pspp-figures/descriptives.sps \
  doc/pspp-figures/flip.sps \
@@ -267,6 +268,13 @@ EXTRA_DIST += doc/tutorial.stt
 .spv.html:
        $(convert) -O format=html -O bare=true
 
+# Make sure that tutorial.stt outputs all layers, because a few of the
+# examples in the manual rely on that and it would be easy to replace
+# it with a style that didn't.
+ALL_LOCAL += tutorial-stt-must-print-all-layers
+tutorial-stt-must-print-all-layers:
+       $(AM_V_GEN)grep 'printAllLayers="true"' $(srcdir)/doc/tutorial.stt >/dev/null 2>&1 && touch $@
+
 # Convert a text file into a Texinfo file.
 .txt.texi:
        $(AM_V_GEN)$(SED) -e 's/@/@@/g' $< > $@