X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=doc%2Fautomake.mk;h=31141e854436b530f5e6586904a23e0c33c856b4;hb=d1baacabfbff9bfc0178b2dd2ac82c245ba831cf;hp=9800d5849db3bc1397d39ae9388f4c5c90ccf22f;hpb=adb05b9a13e7cd677a4fef52163eba05cb56d37f;p=pspp diff --git a/doc/automake.mk b/doc/automake.mk index 9800d5849d..31141e8544 100644 --- a/doc/automake.mk +++ b/doc/automake.mk @@ -111,6 +111,7 @@ am__TEXINFO_TEX_DIR=:$(top_srcdir)/doc:$(top_builddir)/doc ################# Example programs ############################## FIGURE_SYNTAX = \ + doc/pspp-figures/aggregate.sps \ doc/pspp-figures/autorecode.sps \ doc/pspp-figures/chisquare.sps \ doc/pspp-figures/compute.sps \ @@ -123,6 +124,7 @@ FIGURE_SYNTAX = \ doc/pspp-figures/independent-samples-t.sps \ doc/pspp-figures/reliability.sps \ doc/pspp-figures/select-if.sps \ + doc/pspp-figures/sort-cases.sps \ doc/pspp-figures/split.sps \ doc/pspp-figures/temporary.sps \ doc/pspp-figures/tutorial1.sps \ @@ -167,15 +169,34 @@ CLEANFILES += $(FIGURE_TXTS) $(FIGURE_SPVS) $(FIGURE_TEXIS) $(FIGURE_HTMLS) SUFFIXES += .sps .spv .txt .html .texi .pdf # Use pspp to process a syntax file into an output file. -pspp = src/ui/terminal/pspp -$(FIGURE_SPVS): $(pspp)$(EXEEXT) +if cross_compiling +pspp = native/src/ui/terminal/pspp +pspp_output = native/utilities/pspp-output + +native/Makefile: + $(MKDIR_P) native + (cd native && $(top_srcdir)/configure --without-gui) + +native/gl/libgl.la: native/Makefile + (cd native && flock --verbose $(top_builddir)/native-lock $(MAKE) gl/libgl.la) + +$(pspp): native/gl/libgl.la + (cd native && flock --verbose $(top_builddir)/native-lock $(MAKE) src/ui/terminal/pspp) + +$(pspp_output): native/gl/libgl.la + (cd native && flock --verbose $(top_builddir)/native-lock $(MAKE) utilities/pspp-output) +else +pspp = src/ui/terminal/pspp$(EXEEXT) +pspp_output = utilities/pspp-output$(EXEEXT) +endif + +$(FIGURE_SPVS): $(pspp) .sps.spv: $(AM_V_GEN)(cd $(top_srcdir)/examples \ && $(abs_top_builddir)/$(pspp) ../doc/pspp-figures/$( $@.tmp $(AM_V_at)mv $@.tmp $@ # In some cases, the tutorial only wants some parts of the output. -pspp_output = utilities/pspp-output convert = $(AM_V_GEN)$(pspp_output) convert $< $@ doc/pspp-figures/tutorial2a.spv: doc/pspp-figures/tutorial2.spv $(pspp_output) $(convert) --command='Descriptives' @@ -204,13 +225,23 @@ $(FIGURE_TXTS) $(FIGURE_HTMLS): $(pspp_output) $(AM_V_GEN)$(SED) -e 's/@/@@/g' $< > $@ AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) --css-ref=pspp-manual.css -html-local: - -install-html-local: html-local +# Adjust the path for screenshot images. +# But make sure these operations are idempotent. +html-local: doc/pspp.html + test -d doc/pspp.html + for h in doc/pspp.html/*.html; do \ + if grep -Fq ' $@ + + +# Install all the PNG files so that info readers can recognise them +install-info-local: + $(MKDIR_P) $(DESTDIR)$(prefix)/share/info/screenshots + for p in $(INFO_SCREENSHOTS); do \ + $(INSTALL_DATA) $$p $(DESTDIR)$(prefix)/share/info/screenshots ;\ + done + +uninstall-local: + for p in $(INFO_SCREENSHOTS); do \ + f=`basename $$p ` ; \ + $(RM) $(DESTDIR)$(prefix)/share/info/$$f ; \ + done + +EXTRA_DIST+= $(SCREENSHOTS) doc/doc-make.in doc/screengrab + +EXTRA_DIST+= $(EPS_SCREENSHOTS) $(PDF_SCREENSHOTS) $(INFO_SCREENSHOTS)