3f810c3f128b57c81246744e4a0bd9ae5931ffeb
[debian/amanda] / example / Makefile.am
1 # Makefile for sample configuration files
2
3 include $(top_srcdir)/config/automake/vars.am
4 include $(top_srcdir)/config/automake/installperms.am
5
6 amanda_dir    = $(amdatadir)
7 templatedir   = $(amanda_dir)/template.d
8 server_exampledir    = $(amanda_dir)/example
9 client_exampledir    = $(amanda_dir)/example
10 lbltempldir   = $(amanda_dir)/example/label-templates
11
12 template_in_FILE = \
13                 template.d/advanced.conf.in \
14                 template.d/amanda-harddisk.conf.in \
15                 template.d/amanda-single-tape.conf.in \
16                 template.d/amanda-tape-changer.conf.in \
17                 template.d/amanda-S3.conf.in
18 template_FILE = \
19                 template.d/dumptypes \
20                 template.d/tapetypes \
21                 template.d/README   \
22                 template.d/chg-manual.conf   
23 template_generated_FILE = $(template_in_FILE:%.in=%)
24 template_DATA = $(template_FILE) $(template_generated_FILE)
25 EXTRA_DIST += $(template_FILE) $(template_in_FILE)
26 DISTCLEANFILES += $(template_generated_FILE)
27
28
29 server_example_in_FILE = \
30                 amanda.conf.in \
31                 inetd.conf.amandaserver.in \
32                 xinetd.amandaserver.in
33 server_example_FILE = \
34                 chg-multi.conf \
35                 chg-scsi.conf \
36                 disklist
37 server_example_generated_FILE = $(server_example_in_FILE:%.in=%)
38 server_example_DATA = $(server_example_FILE) $(server_example_generated_FILE)
39 EXTRA_DIST += $(server_example_FILE) $(server_example_in_FILE)
40 DISTCLEANFILES += $(server_example_generated_FILE)
41
42 client_example_in_FILE = \
43                 amanda-client.conf.in \
44                 amanda-client-postgresql.conf.in \
45                 inetd.conf.amandaclient.in \
46                 xinetd.amandaclient.in
47 client_example_FILE = 
48 client_example_generated_FILE = $(client_example_in_FILE:%.in=%)
49 client_example_DATA = $(client_example_FILE) $(client_example_generated_FILE)
50 EXTRA_DIST += $(client_example_FILE) $(client_example_in_FILE)
51 DISTCLEANFILES += $(client_example_generated_FILE)
52
53
54 lbltempl_DATA = DLT.ps \
55                 EXB-8500.ps \
56                 HP-DAT.ps \
57                 8.5x11.ps \
58                 3hole.ps \
59                 DLT-A4.ps \
60                 DIN-A4.ps 
61 EXTRA_DIST += $(lbltempl_DATA)
62
63 # build foo from foo.in where necessary
64 %: %.in $(top_builddir)/config.status
65         $(top_builddir)/config.status --file=$@:$<
66
67 # config.status leaves config.log files around
68 CLEANFILES += config.log
69
70 # figure out whether to put foo.in or foo itself into the dist tarball, based on whether
71 # foo.in exists.
72
73 INSTALLPERMS_data = chown=amanda \
74         dest=$(templatedir) $(template_DATA) \
75         dest=$(server_exampledir) $(example_DATA) \
76         dest=$(client_exampledir) $(example_DATA) \
77         dest=$(lbltempldir) $(lbltempl_DATA)