]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/help2man-rules.make
Merge branch 'lilypond/translation' into staging
[lilypond.git] / stepmake / stepmake / help2man-rules.make
index e0498b01488c23ad051e55442967df27183471b0..6c176bac5e7b0995cf33ee66ed452cb4e2bc802a 100644 (file)
 # 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