1 # The distributed help2man sucks; use the Debian version instead.
2 ifeq ($(PYTHON),$(TARGET_PYTHON))
3 HELP2MAN_COMMAND = help2man $< > $@
5 HELP2MAN_COMMAND = help2man "env $$(basename $$(head -1 $<)) $<" > $@
8 ifeq ($(strip $(CROSS)),no)
9 $(outdir)/%.1: $(outdir)/% $(buildscript-dir)/help2man
12 # When cross building, some manpages will not build because the
13 # executable does not run. We assume the manpages to be generated
14 # during a previous compile for the build host, with config=for-build,
15 # in the directory $(outdir)-for-build.
16 $(outdir)/%.1: $(outdir:%=%-for-build)/%.1
20 ifneq ($(outdir),./out)
21 $(outdir)/%.1: out/%.1