X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Fhelp2man-rules.make;h=6c176bac5e7b0995cf33ee66ed452cb4e2bc802a;hb=f93e4199873c91ae32f0e84a610d14853dc379df;hp=e0498b01488c23ad051e55442967df27183471b0;hpb=543171165412bc915d8ea1f308d070c74924b2f1;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