Revision 6aff0514 Makefile.am

b/Makefile.am
883 883
maninput = \
884 884
	$(patsubst %.1,%.1.in,$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS)))) \
885 885
	$(patsubst %.html,%.html.in,$(manhtml)) \
886
	man/footer.man man/footer.html $(mangen)
886
	$(mangen)
887 887

  
888 888
TEST_FILES = \
889 889
	test/data/htools/clean-nonzero-score.data \
......
1196 1196
	@test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; }
1197 1197
	$(DOT) -Tpng -o $@ $<
1198 1198

  
1199
man/footer.man: man/footer.rst
1200
	@test -n "$(PANDOC)" || \
1201
	  { echo 'pandoc' not found during configure; exit 1; }
1202
	$(PANDOC) -f rst -t man -o $@ $<
1203

  
1204
man/footer.html: man/footer.rst
1205
	@test -n "$(PANDOC)" || \
1206
	  { echo 'pandoc' not found during configure; exit 1; }
1207
	$(PANDOC) -f rst -t html -o $@ $<
1208

  
1209 1199
man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py \
1210 1200
	lib/build/shell_example_lexer.py \
1211 1201
	| $(RUN_IN_TEMPDIR) $(BUILT_PYTHON_SOURCES)
......
1219 1209
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@ ;\
1220 1210
	trap - EXIT
1221 1211

  
1222
man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.man
1212
man/%.7.in man/%.8.in man/%.1.in: man/%.gen
1223 1213
	@test -n "$(PANDOC)" || \
1224 1214
	  { echo 'pandoc' not found during configure; exit 1; }
1225 1215
	set -o pipefail ; \
1226 1216
	trap 'echo auto-removing $@; rm $@' EXIT; \
1227
	$(PANDOC) -s -f rst -t man -A man/footer.man $< | \
1217
	$(PANDOC) -s -f rst -t man $< man/footer.rst | \
1228 1218
	  sed -e 's/\\@/@/g' > $@; \
1229 1219
	if test -n "$(MAN_HAS_WARNINGS)"; then $(CHECK_MAN_WARNINGS) $@; fi; \
1230 1220
	$(CHECK_MAN_DASHES) $@; \
1231 1221
	trap - EXIT
1232 1222

  
1233 1223

  
1234
man/%.html.in: man/%.gen man/footer.html
1224
man/%.html.in: man/%.gen
1235 1225
	@test -n "$(PANDOC)" || \
1236 1226
	  { echo 'pandoc' not found during configure; exit 1; }
1237 1227
	set -o pipefail ; \
1238
	$(PANDOC) -s -f rst -t html -A man/footer.html $< | \
1228
	$(PANDOC) -s -f rst -t html $< man/footer.rst | \
1239 1229
	  sed -e 's/\\@/@/g' > $@
1240 1230

  
1241 1231
man/%: man/%.in  $(REPLACE_VARS_SED)
......
1825 1815
	  exit 1; \
1826 1816
	fi
1827 1817

  
1818
# target to rebuild all man pages (both groff and html output)
1819
.PHONY: man
1820
man: $(man_MANS) $(manhtml)
1821

  
1828 1822
# Target that builds all binaries (including those that are not
1829 1823
# rebuilt except when running the tests)
1830 1824
.PHONY: really-all

Also available in: Unified diff