]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/help2man-rules.make
patch::: 1.3.38.jcn3
[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         $(PERL) $(depth)/$(builddir)/buildscripts/$(outbase)/help2man $< > $@ || \
16         (echo ""; echo "Apparently the man pages failed to build. This is";\
17         echo "no problem, since they don't contain any information anyway.";\
18         echo "Please run make again, and be prepared for NO manual pages.")