Revision a13d6911

b/Makefile.am
151 151
	.hpc/*.mix htools/*.tix \
152 152
	doc/hs-lint.html
153 153

  
154
# BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise
155
# it'll cause the target to rebuild every time.
154
# BUILT_SOURCES should only be used as a dependency on phony
155
# targets. Otherwise it'll cause the target to rebuild every time.
156 156
BUILT_SOURCES = \
157 157
	ganeti \
158 158
	stamp-srclinks \
......
830 830
	  { echo 'pandoc' not found during configure; exit 1; }
831 831
	$(PANDOC) -f rst -t html -o $@ $<
832 832

  
833
man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py
834
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@
833
man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py \
834
	| $(RUN_IN_TEMPDIR) $(BUILT_PYTHON_SOURCES)
835
	set -e ; \
836
	trap 'echo auto-removing $@; rm $@' EXIT; \
837
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@ ;\
838
	trap - EXIT
835 839

  
836 840
man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.man
837 841
	@test -n "$(PANDOC)" || \

Also available in: Unified diff