ports/sysutils/cfengine/files/patch-inputs_Makefile.in
Wesley Shields b55f7b2bca Update to 2.2.7
Properly respect NOPORTDOCS and NOPORTEXAMPLES

PR:		ports/124993, ports/122057
Submitted by:	Jo Rhett <jrhett@netconsonance.com>
Approved by:	sergei (maintainer timeout)
2008-07-02 03:08:53 +00:00

18 lines
652 B
Text

--- inputs/Makefile.in.orig 2008-07-01 22:51:16.000000000 -0400
+++ inputs/Makefile.in 2008-07-01 22:51:37.000000000 -0400
@@ -267,6 +267,7 @@
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-pkgdataSCRIPTS: $(pkgdata_SCRIPTS)
@$(NORMAL_INSTALL)
+.if !defined(NOPORTEXAMPLES)
test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
@list='$(pkgdata_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
@@ -276,6 +277,7 @@
$(pkgdataSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
else :; fi; \
done
+.endif
uninstall-pkgdataSCRIPTS:
@$(NORMAL_UNINSTALL)