X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Fhelp2man-rules.make;h=6c176bac5e7b0995cf33ee66ed452cb4e2bc802a;hb=8c197373e3dfce4382469a541b38be1f13a48e13;hp=e0498b01488c23ad051e55442967df27183471b0;hpb=97047e999fd00f4981bad49eb4a45f6952bfd1e3;p=lilypond.git diff --git a/stepmake/stepmake/help2man-rules.make b/stepmake/stepmake/help2man-rules.make index e0498b0148..6c176bac5e 100644 --- a/stepmake/stepmake/help2man-rules.make +++ b/stepmake/stepmake/help2man-rules.make @@ -15,7 +15,11 @@ # cases. Four more explaining what a line comment is, and that it may # be parsed, same here. +ifeq ($(PYTHON),$(TARGET_PYTHON)) HELP2MAN_COMMAND = $(buildscript-dir)/help2man $< > $@ +else +HELP2MAN_COMMAND = $(buildscript-dir)/help2man "env $$(basename $$(head -1 $<)) $<" > $@ +endif ifeq ($(strip $(CROSS)),no) $(outdir)/%.1: $(outdir)/% $(buildscript-dir)/help2man