$NetBSD: patch-aj,v 1.2 2003/05/29 21:08:27 seb Exp $ --- contrib/Makefile.in.orig 2003-05-28 16:55:26.000000000 +0000 +++ contrib/Makefile.in @@ -145,9 +145,12 @@ target_vendor = @target_vendor@ s1 = cfdoc s2 = cfengine.el -sbin_SCRIPTS = vicf $(s1) +sbin_SCRIPTS = $(s1) pkgdata_SCRIPTS = $(s2) +exampledir = $(prefix)/share/examples/cfengine +example_SCRIPTS = vicf + EXTRA_DIST = README README.vicf $(s1) $(s2) # @@ -178,8 +181,10 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/conf.h CONFIG_CLEAN_FILES = vicf -SCRIPTS = $(pkgdata_SCRIPTS) $(sbin_SCRIPTS) +SCRIPTS = $(example_SCRIPTS) $(pkgdata_SCRIPTS) $(sbin_SCRIPTS) +depcomp = +am__depfiles_maybe = DIST_SOURCES = DIST_COMMON = README Makefile.am Makefile.in vicf.in all: all-am @@ -187,11 +192,31 @@ all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu contrib/Makefile + $(AUTOMAKE) --foreign --ignore-deps contrib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) vicf: $(top_builddir)/config.status vicf.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +exampleSCRIPT_INSTALL = $(INSTALL_SCRIPT) +install-exampleSCRIPTS: $(example_SCRIPTS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(exampledir) + @list='$(example_SCRIPTS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " $(exampleSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(exampledir)/$$f"; \ + $(exampleSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(exampledir)/$$f; \ + else :; fi; \ + done + +uninstall-exampleSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(example_SCRIPTS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " rm -f $(DESTDIR)$(exampledir)/$$f"; \ + rm -f $(DESTDIR)$(exampledir)/$$f; \ + done pkgdataSCRIPT_INSTALL = $(INSTALL_SCRIPT) install-pkgdataSCRIPTS: $(pkgdata_SCRIPTS) @$(NORMAL_INSTALL) @@ -276,7 +301,7 @@ check: check-am all-am: Makefile $(SCRIPTS) installdirs: - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(sbindir) + $(mkinstalldirs) $(DESTDIR)$(exampledir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(sbindir) install: install-am install-exec: install-exec-am @@ -322,7 +347,7 @@ info: info-am info-am: -install-data-am: install-pkgdataSCRIPTS +install-data-am: install-exampleSCRIPTS install-pkgdataSCRIPTS install-exec-am: install-sbinSCRIPTS @@ -348,17 +373,18 @@ ps: ps-am ps-am: -uninstall-am: uninstall-info-am uninstall-pkgdataSCRIPTS \ - uninstall-sbinSCRIPTS +uninstall-am: uninstall-exampleSCRIPTS uninstall-info-am \ + uninstall-pkgdataSCRIPTS uninstall-sbinSCRIPTS .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am info info-am install \ - install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-pkgdataSCRIPTS install-sbinSCRIPTS install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ + install-am install-data install-data-am install-exampleSCRIPTS \ + install-exec install-exec-am install-info install-info-am \ + install-man install-pkgdataSCRIPTS install-sbinSCRIPTS \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-exampleSCRIPTS uninstall-info-am \ uninstall-pkgdataSCRIPTS uninstall-sbinSCRIPTS # Tell versions [3.59,3.63) of GNU make to not export all variables.