1 # Makefile for sample configuration files
3 include $(top_srcdir)/config/automake/vars.am
4 include $(top_srcdir)/config/automake/installperms.am
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
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
19 template.d/dumptypes \
20 template.d/tapetypes \
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)
29 server_example_in_FILE = \
31 inetd.conf.amandaserver.in \
32 xinetd.amandaserver.in
33 server_example_FILE = \
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)
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
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)
54 lbltempl_DATA = DLT.ps \
61 EXTRA_DIST += $(lbltempl_DATA)
63 # build foo from foo.in where necessary
64 %: %.in $(top_builddir)/config.status
65 $(top_builddir)/config.status --file=$@:$<
67 # config.status leaves config.log files around
68 CLEANFILES += config.log
70 # figure out whether to put foo.in or foo itself into the dist tarball, based on whether
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)