]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/help2man-rules.make
release: 1.3.136
[lilypond.git] / stepmake / stepmake / help2man-rules.make
index b6bdb5af214fa8e280d070ee6dbf407f85766a39..8f90dc312a689e79b93ab0ef28fb402c0f344d14 100644 (file)
@@ -5,10 +5,15 @@
 #       interpreter.  This is slightly bizarre, but it helps
 # Indeed it is. Perl sucks.
 #
+
+ifneq ($(outdir),./out)
+$(outdir)/%.1: out/%.1
+       cp $< $@
+endif
+
 $(outdir)/%.1: $(outdir)/%
-       $(PERL) $(depth)/buildscripts/$(outdir)/help2man $< > $@ || \
+       echo "generating man page from --help"
+       @$(PERL) $(depth)/$(builddir)/buildscripts/$(outbase)/help2man $< > $@ || \
        (echo ""; echo "Apparently the man pages failed to build. This is";\
        echo "no problem, since they don't contain any information anyway.";\
        echo "Please run make again, and be prepared for NO manual pages.")
-
-