]> arthur.barton.de Git - netatalk.git/blob - distrib/initscripts/Makefile.am
Forward-Ports from the stabilizing branch.
[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.atalk.redhat         \
19         rc.atalk.tru64          \
20         rc.atalk.bsd            \
21         rc.atalk.suse
22 TEMPLATES = $(foreach f,$(GENERATED_FILES),$(f).tmpl)
23
24 CLEANFILES = $(GENERATED_FILES)
25 EXTRA_DIST = $(TEMPLATES) rc.atalk.cobalt rc.atalk.sysv
26
27 install-data-hook: $(GENERATED_FILES)
28
29 #
30 # checking for "redhat" style sysv scripts:
31 #
32
33 if USE_REDHAT
34
35 sysvdir = /etc/rc.d/init.d
36 sysv_SCRIPTS = atalk
37
38 atalk: rc.atalk.redhat
39         cp -f rc.atalk.redhat atalk
40         chmod a+x atalk
41
42 endif
43
44 #
45 # checking for "SuSE" style sysv scripts:
46 #
47
48 if USE_SUSE
49
50 sysvdir = /etc/rc.d
51 sysv_SCRIPTS = atalk
52
53 atalk: rc.atalk.suse
54         cp -f rc.atalk.suse atalk
55         chmod a+x atalk
56
57 endif
58
59 #
60 #
61 # checking for "cobalt" style sysv scripts:
62 #
63
64 if USE_COBALT
65
66 sysvdir = /etc/rc.d/init.d
67 sysv_SCRIPTS = atalk
68
69 atalk: rc.atalk.cobalt
70         cp -f rc.atalk.cobalt atalk
71         chmod a+x atalk
72
73 endif
74
75 #
76 # checking for "tru64" style sysv scripts:
77 #
78
79 if USE_TRU64
80
81 sysvdir = /sbin/init.d
82 sysv_SCRIPTS = atalk
83
84 atalk: rc.atalk.tru64
85         cp -f rc.atalk.tru64 atalk
86         chmod a+x atalk
87
88 endif