Commits

Peter Eisentraut committed f34b075

Call fop from a makefile rule

That way, it is not called when nothing needs to be rebuilt, like the
other targets are handled.

Comments (0)

Files changed (1)

jobhelpers/postgresql-extradoc.sh

-test -e GNUmakefile || ./configure
-cd doc/src/sgml
-make -k xslthtml postgres-A4.pdf postgres-US.pdf postgres.info postgres-A4.fo postgres-US.fo epub
+cat <<'EOF' >src/Makefile.custom
+.SECONDARY: postgres-A4.fo postgres-US.fo
+
+%-fop.pdf: %.fo
+	/usr/bin/time -v fop -fo $< -pdf $@
+EOF
 
 JAVA_ARGS='-Xmx700m -Xincgc'
 export JAVA_ARGS
-/usr/bin/time -v fop -fo postgres-A4.fo -pdf postgres-A4-fop.pdf
-/usr/bin/time -v fop -fo postgres-US.fo -pdf postgres-US-fop.pdf
+
+test -e GNUmakefile || ./configure
+cd doc/src/sgml
+make -k xslthtml postgres-A4.pdf postgres-US.pdf postgres.info postgres-A4-fop.pdf postgres-US-fop.pdf epub