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
87
88
89
90
91
92
93
94
95
96
97
98
99
|
$NetBSD: patch-aj,v 1.1 2003/04/26 08:33:01 seb Exp $
--- contrib/Makefile.in.orig 2003-04-09 13:11:16.000000000 +0000
+++ contrib/Makefile.in
@@ -96,9 +96,12 @@ install_sh = @install_sh@
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)
#
@@ -128,7 +131,7 @@ subdir = contrib
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)
DIST_SOURCES =
DIST_COMMON = README Makefile.am Makefile.in vicf.in
@@ -142,6 +145,26 @@ Makefile: $(srcdir)/Makefile.in $(top_
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)
@@ -217,7 +240,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
@@ -263,7 +286,7 @@ info: info-am
info-am:
-install-data-am: install-pkgdataSCRIPTS
+install-data-am: install-exampleSCRIPTS install-pkgdataSCRIPTS
install-exec-am: install-sbinSCRIPTS
@@ -281,17 +304,18 @@ mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic
-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 \
- 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 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.
|