]> arthur.barton.de Git - netatalk.git/blob - distrib/initscripts/Makefile.am
Get rid of GNU make specific foreach in various instances of Makefile.am
[netatalk.git] / distrib / initscripts / Makefile.am
1 ## Makefile for distrib/initscripts/
2
3 SUFFIXES = .tmpl .
4
5 pkgconfdir = @PKGCONFDIR@
6
7 #
8 # Template Generation
9 #
10
11 .tmpl:
12         sed -e s@:BINDIR:@${bindir}@ \
13             -e s@:SBINDIR:@${sbindir}@ \
14             -e s@:ETCDIR:@${pkgconfdir}@ \
15             <$< >$@
16
17 GENERATED_FILES = \
18         rc.afpd.netbsd          \
19         rc.atalk.redhat         \
20         rc.atalk.tru64          \
21         rc.atalk.bsd            \
22         rc.atalkd.netbsd        \
23         rc.atalk.suse           \
24         rc.papd.netbsd          \
25         rc.timelord.netbsd
26 TEMPLATES = \
27         rc.afpd.netbsd.tmpl             \
28         rc.atalk.redhat.tmpl            \
29         rc.atalk.tru64.tmpl             \
30         rc.atalk.bsd.tmpl               \
31         rc.atalkd.netbsd.tmpl           \
32         rc.atalk.suse.tmpl              \
33         rc.papd.netbsd.tmpl             \
34         rc.timelord.netbsd.tmpl
35
36 CLEANFILES = $(GENERATED_FILES)
37 EXTRA_DIST = $(TEMPLATES) rc.atalk.cobalt rc.atalk.sysv
38
39 install-data-hook: $(GENERATED_FILES)
40
41 #
42 # checking for "redhat" style sysv scripts:
43 #
44
45 if USE_REDHAT
46
47 sysvdir = /etc/rc.d/init.d
48 sysv_SCRIPTS = atalk
49
50 atalk: rc.atalk.redhat
51         cp -f rc.atalk.redhat atalk
52         chmod a+x atalk
53
54 endif
55
56 #
57 # checking for "SuSE" style sysv scripts:
58 #
59
60 if USE_SUSE
61
62 sysvdir = /etc/init.d
63 sysv_SCRIPTS = atalk
64
65 atalk: rc.atalk.suse
66         cp -f rc.atalk.suse atalk
67         chmod a+x atalk
68
69 endif
70
71 #
72 #
73 # checking for "cobalt" style sysv scripts:
74 #
75
76 if USE_COBALT
77
78 sysvdir = /etc/rc.d/init.d
79 sysv_SCRIPTS = atalk
80
81 atalk: rc.atalk.cobalt
82         cp -f rc.atalk.cobalt atalk
83         chmod a+x atalk
84
85 endif
86
87 #
88 # checking for "tru64" style sysv scripts:
89 #
90
91 if USE_TRU64
92
93 sysvdir = /sbin/init.d
94 sysv_SCRIPTS = atalk
95
96 atalk: rc.atalk.tru64
97         cp -f rc.atalk.tru64 atalk
98         chmod a+x atalk
99
100 endif
101
102 #
103 # checking for NetBSD init scripts
104 #
105
106 if USE_NETBSD
107
108 sysvdir = /etc/rc.d
109 sysv_SCRIPTS = afpd atalkd papd timelord
110
111 afpd: rc.afpd.netbsd
112         cp -f $< $@
113
114 atalkd: rc.atalkd.netbsd
115         cp -f $< $@
116         chmod a+x $@
117
118 papd: rc.papd.netbsd
119         cp -f $< $@
120         chmod a+x $@
121
122 timelord: rc.timelord.netbsd
123         cp -f $< $@
124         chmod a+x $@
125
126 endif
127