1 ifneq ($(outdir),./out)
6 # We must invoke the generated $(outdir)/help2man script instead of
7 # the help2man.pl source, which means that the buildscripts directory
10 # From the perlrun man-page:
12 # If the #! line does not contain the word "perl", the
13 # program named after the #! is executed instead of the Perl
14 # interpreter. This is slightly bizarre, but it helps
16 # Indeed it is. Perl sucks.
18 # Two screenfulls explaining that the otherwise standard #! is broken
19 # for perl, and arguing that this broken magic is better in some
20 # cases. Four more explaining what a line comment is, and that it may
21 # be parsed, same here.
23 HELP2MAN_COMMAND = $(PERL) $(builddir)/buildscripts/$(outbase)/help2man $< > $@
26 $(outdir)/%.1: $(outdir)/%
29 # When cross building, some manpages will not build because the executable
30 # does not run. We don not want to disable building manpages, because
31 # the cross build process may generate them using a native executable.
32 $(outdir)/%.1: $(outdir)/%
33 $(HELP2MAN_COMMAND) || \
34 (echo ""; echo "Apparently the man pages failed to build. This is";\
35 echo "no problem, since they don't contain any information anyway.";\
36 echo "Please run make again, and be prepared for NO manual pages.")