From 6d59090df5856d32163f256912ddf1c897590447 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Wed, 21 Aug 2019 13:12:13 +0800 Subject: [PATCH] pacemaker: do not execute target program while cross compile Signed-off-by: Bian Naimeng refresh patch to new version 1.1.21 Signed-off-by: Changqing Li --- Makefile.common | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.common b/Makefile.common index 469417f..9f19a53 100644 --- a/Makefile.common +++ b/Makefile.common @@ -36,18 +36,20 @@ if BUILD_HELP man8_MANS = $(sbin_PROGRAMS:%=%.8) $(sbin_SCRIPTS:%=%.8) endif ++man7_MANS = + %.8: % $(MAN8DEPS) chmod a+x $(abs_builddir)/$< $(AM_V_MAN)PATH=$(abs_builddir):$$PATH $(HELP2MAN) --output $@ --no-info --section 8 --name "Part of the Pacemaker cluster resource manager" $(abs_builddir)/$< %.xml: % - $(AM_V_GEN)$(abs_builddir)/$< metadata > $@ + @echo "xml for $<: Do not try to execute target program here" %.dbook: %.xml - $(AM_V_XSL)$(XSLTPROC) --nonet --novalid --stringparam man.name $* $(DBOOK_OPTS) $(top_srcdir)/xml/ocf-meta2man.xsl $(abs_builddir)/$< > $(abs_builddir)/$@ + @echo "dbook for $<: Do not try to execute target program here" %.7: %.dbook - $(AM_V_XSL)$(XSLTPROC) $(MANPAGE_XSLT) $(abs_builddir)/$< $(PCMK_quiet) + @echo "man7 for $<: Do not try to execute target program here" # Build docbook from asciidoc because XML is a PITA to edit # -- 2.7.4