X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fautomake.mk;h=def0dbf395218a9aa634c7af75b648b39d130f8f;hb=605db43b368a66732737c8ac2a038ffeb93f98d1;hp=3571cc4960b116f22a75dca1fc975b618036ae74;hpb=60aae33831d7c1aefc40d4fdc73702361222f5f6;p=pspp diff --git a/doc/automake.mk b/doc/automake.mk index 3571cc4960..def0dbf395 100644 --- a/doc/automake.mk +++ b/doc/automake.mk @@ -51,6 +51,7 @@ doc_pspp_TEXINFOS = doc/version.texi \ doc_pspp_dev_TEXINFOS = doc/version-dev.texi \ doc/dev/intro.texi \ doc/dev/concepts.texi \ + doc/dev/gui.texi \ doc/dev/syntax.texi \ doc/dev/data.texi \ doc/dev/i18n.texi \ @@ -92,7 +93,7 @@ dist_docbook_DATA = doc/pspp.xml CLEANFILES += pspp-dev.dvi $(docbook_DATA) doc/pspp.info* doc/pspp.xml -doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PSS) $(HTMLS) $(dist_docbook_DATA) +doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PNGS) $(HTMLS) $(dist_docbook_DATA) PHONY += doc doc/help-pages-list: $(UI_FILES) @@ -116,6 +117,7 @@ FIGURE_SYNTAX = \ doc/pspp-figures/chisquare.sps \ doc/pspp-figures/compute.sps \ doc/pspp-figures/count.sps \ + doc/pspp-figures/crosstabs.sps \ doc/pspp-figures/descriptives.sps \ doc/pspp-figures/flip.sps \ doc/pspp-figures/frequencies.sps \ @@ -150,23 +152,36 @@ FIGURE_TXTS = $(FIGURE_SPVS:.spv=.txt) FIGURE_TEXIS = $(FIGURE_TXTS:.txt=.texi) FIGURE_HTMLS = $(FIGURE_SPVS:.spv=.html) FIGURE_PDFS = $(FIGURE_SPVS:.spv=.pdf) +FIGURE_PNGS = $(FIGURE_SPVS:.spv=.png) figure-spvs: $(FIGURE_SPVS) figure-txts: $(FIGURE_TXTS) figure-texis: $(FIGURE_TEXIS) figure-htmls: $(FIGURE_HTMLS) figure-pdfs: $(FIGURE_PDFS) -PHONY += figure-spv figure-txts figure-texis figure-htmls figure-pdfs - -$(top_builddir)/doc/pspp.info: $(FIGURE_TEXIS) +figure-pngs: $(FIGURE_PNGS) +PHONY += \ + figure-spv \ + figure-txts \ + figure-texis \ + figure-htmls \ + figure-pdfs \ + figure-pngs + +$(top_builddir)/doc/pspp.info: $(FIGURE_PNGS) $(top_builddir)/doc/pspp.ps: $(FIGURE_TEXIS) $(top_builddir)/doc/pspp.dvi: $(FIGURE_TEXIS) $(top_builddir)/doc/pspp.html: $(FIGURE_HTMLS) $(top_builddir)/doc/pspp.pdf: $(FIGURE_TEXIS) $(top_builddir)/doc/pspp.xml: $(FIGURE_TEXIS) -CLEANFILES += $(FIGURE_TXTS) $(FIGURE_SPVS) $(FIGURE_TEXIS) $(FIGURE_HTMLS) -SUFFIXES += .sps .spv .txt .html .texi .pdf +CLEANFILES += \ + $(FIGURE_TXTS) \ + $(FIGURE_SPVS) \ + $(FIGURE_TEXIS) \ + $(FIGURE_HTMLS) \ + $(FIGURE_PNGS) +SUFFIXES += .sps .spv .txt .html .texi .pdf .png # Use pspp to process a syntax file into an output file. if cross_compiling @@ -175,7 +190,7 @@ pspp_output = native/utilities/pspp-output native/Makefile: $(MKDIR_P) native - (cd native && $(top_srcdir)/configure --without-gui) + (cd native && $(abs_top_srcdir)/configure --host=$$build --without-gui) native/gl/libgl.la: native/Makefile (cd native && flock --verbose $(top_builddir)/native-lock $(MAKE) gl/libgl.la) @@ -197,7 +212,7 @@ $(FIGURE_SPVS): $(pspp) $(AM_V_at)mv $@.tmp $@ # In some cases, the tutorial only wants some parts of the output. -convert = $(AM_V_GEN)$(pspp_output) convert $< $@ +convert = $(AM_V_GEN)LSAN_OPTIONS="suppressions=$(abs_top_srcdir)/tests/lsan.supp:print_suppressions=0:$$LSAN_OPTIONS" $(pspp_output) convert $< $@ doc/pspp-figures/tutorial2a.spv: doc/pspp-figures/tutorial2.spv $(pspp_output) $(convert) --command='Descriptives' doc/pspp-figures/tutorial2b.spv: doc/pspp-figures/tutorial2.spv $(pspp_output) @@ -211,12 +226,21 @@ doc/pspp-figures/tutorial7a.spv: doc/pspp-figures/tutorial7.spv $(pspp_output) doc/pspp-figures/tutorial7b.spv: doc/pspp-figures/tutorial7.spv $(pspp_output) $(convert) --commands=regression --nth-command=2 --subtypes=coefficients + +$(FIGURE_PNGS): $(pspp_output) +$(FIGURE_TXTS): $(pspp_output) +$(FIGURE_HTMLS): $(pspp_output) +$(FIGURE_PDFS): $(pspp_output) + # Convert an output file into a text file or HTML file. $(FIGURE_TXTS) $(FIGURE_HTMLS): $(pspp_output) .spv.txt: $(convert) .spv.pdf: - $(convert) -O left-margin=0pt -O right-margin=0pt -O top-margin=0pt -O bottom-margin=0pt -O paper-size=6x20in -O font-size=12000 --table-look=$(HOME)/pspp/spss15/Looks/report.tlo + $(convert) -O trim=true -O left-margin=0in -O right-margin=0in -O top-margin=0in -O bottom-margin=0in -O paper-size=7.5x99in --table-look=$(srcdir)/doc/tutorial.stt +.spv.png: + $(convert) -O trim=true -O left-margin=0in -O right-margin=0in -O top-margin=0in -O bottom-margin=0in -O paper-size=7.5x99in --table-look=$(srcdir)/doc/tutorial.stt +EXTRA_DIST += doc/tutorial.stt .spv.html: $(convert) -O format=html -O bare=true @@ -227,7 +251,8 @@ $(FIGURE_TXTS) $(FIGURE_HTMLS): $(pspp_output) AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) --css-ref=pspp-manual.css # Adjust the path for screenshot images. # But make sure these operations are idempotent. -html-local: +html-local: doc/pspp.html + test -d doc/pspp.html for h in doc/pspp.html/*.html; do \ if grep -Fq '