]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/help2man-rules.make
* buildscripts/help2man.pl: Update to latest version from Debian.
[lilypond.git] / stepmake / stepmake / help2man-rules.make
1 # ugh. 
2 # Man-page:
3 #       If the #! line does not contain the word "perl", the
4 #       program named after the #! is executed instead of the Perl
5 #       interpreter.  This is slightly bizarre, but it helps
6 # Indeed it is. Perl sucks.
7 #
8
9 ifneq ($(outdir),./out)
10 $(outdir)/%.1: out/%.1
11         cp $< $@
12 endif
13
14 $(outdir)/%.1: $(outdir)/%
15         echo "generating man page from --help"
16 #ugh, don't hide make rules --hampers debugging
17         $(PERL) $(builddir)/buildscripts/$(outbase)/help2man $< > $@ || \
18         (echo ""; echo "Apparently the man pages failed to build. This is";\
19         echo "no problem, since they don't contain any information anyway.";\
20         echo "Please run make again, and be prepared for NO manual pages.")