summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2/patches/patch-aj
blob: 1742802d0bee1d592b2729702dcd711dc8d846ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
$NetBSD: patch-aj,v 1.3 2004/08/10 14:18:44 ben Exp $

--- contrib/Makefile.in.orig	2004-08-09 13:27:41.000000000 -0400
+++ contrib/Makefile.in	2004-08-09 20:44:12.000000000 -0400
@@ -50,5 +50,7 @@
 pkgdataSCRIPT_INSTALL = $(INSTALL_SCRIPT)
 sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT)
-SCRIPTS = $(pkgdata_SCRIPTS) $(sbin_SCRIPTS)
+SCRIPTS = $(example_SCRIPTS) $(pkgdata_SCRIPTS) $(sbin_SCRIPTS)
+depcomp =
+am__depfiles_maybe =
 SOURCES =
 DIST_SOURCES =
@@ -168,4 +170,6 @@
 sbin_SCRIPTS = vicf $(s1)
 pkgdata_SCRIPTS = $(s2)
+exampledir = $(prefix)/share/examples/cfengine
+example_SCRIPTS = vicf
 EXTRA_DIST = README README.vicf $(s1) $(s2)
 
@@ -205,5 +209,5 @@
 	  esac; \
 	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  contrib/Makefile'; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  contrib/Makefile'; \
 	cd $(top_srcdir) && \
 	  $(AUTOMAKE) --gnu  contrib/Makefile
@@ -218,4 +222,26 @@
 	esac;
 
+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
+
+
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
@@ -353,5 +379,5 @@
 info-am:
 
-install-data-am: install-pkgdataSCRIPTS
+install-data-am: install-exampleSCRIPTS install-pkgdataSCRIPTS
 
 install-exec-am: install-sbinSCRIPTS
@@ -379,15 +405,16 @@
 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 html html-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 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