X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=example%2FMakefile.am;h=3f810c3f128b57c81246744e4a0bd9ae5931ffeb;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=6e51c9a312ad29ad480db961adaf9747ba0be03f;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/example/Makefile.am b/example/Makefile.am index 6e51c9a..3f810c3 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -5,41 +5,73 @@ include $(top_srcdir)/config/automake/installperms.am amanda_dir = $(amdatadir) templatedir = $(amanda_dir)/template.d -exampledir = $(amanda_dir)/example +server_exampledir = $(amanda_dir)/example +client_exampledir = $(amanda_dir)/example lbltempldir = $(amanda_dir)/example/label-templates -EXTRA_DIST += chg-multi.conf \ - chg-scsi.conf \ - config.site \ - disklist \ - chg-mcutil.conf - -dist_template_DATA = template.d/advanced.conf \ - template.d/amanda-harddisk.conf \ - template.d/amanda-single-tape.conf \ - template.d/amanda-tape-changer.conf \ - template.d/amanda-S3.conf \ +template_in_FILE = \ + template.d/advanced.conf.in \ + template.d/amanda-harddisk.conf.in \ + template.d/amanda-single-tape.conf.in \ + template.d/amanda-tape-changer.conf.in \ + template.d/amanda-S3.conf.in +template_FILE = \ template.d/dumptypes \ template.d/tapetypes \ template.d/README \ template.d/chg-manual.conf +template_generated_FILE = $(template_in_FILE:%.in=%) +template_DATA = $(template_FILE) $(template_generated_FILE) +EXTRA_DIST += $(template_FILE) $(template_in_FILE) +DISTCLEANFILES += $(template_generated_FILE) + + +server_example_in_FILE = \ + amanda.conf.in \ + inetd.conf.amandaserver.in \ + xinetd.amandaserver.in +server_example_FILE = \ + chg-multi.conf \ + chg-scsi.conf \ + disklist +server_example_generated_FILE = $(server_example_in_FILE:%.in=%) +server_example_DATA = $(server_example_FILE) $(server_example_generated_FILE) +EXTRA_DIST += $(server_example_FILE) $(server_example_in_FILE) +DISTCLEANFILES += $(server_example_generated_FILE) -dist_example_DATA = amanda.conf \ - amanda-client.conf \ - inetd.conf.amandaclient \ - inetd.conf.amandaserver \ - xinetd.amandaclient \ - xinetd.amandaserver +client_example_in_FILE = \ + amanda-client.conf.in \ + amanda-client-postgresql.conf.in \ + inetd.conf.amandaclient.in \ + xinetd.amandaclient.in +client_example_FILE = +client_example_generated_FILE = $(client_example_in_FILE:%.in=%) +client_example_DATA = $(client_example_FILE) $(client_example_generated_FILE) +EXTRA_DIST += $(client_example_FILE) $(client_example_in_FILE) +DISTCLEANFILES += $(client_example_generated_FILE) -dist_lbltempl_DATA = DLT.ps \ + +lbltempl_DATA = DLT.ps \ EXB-8500.ps \ HP-DAT.ps \ 8.5x11.ps \ 3hole.ps \ DLT-A4.ps \ DIN-A4.ps +EXTRA_DIST += $(lbltempl_DATA) + +# build foo from foo.in where necessary +%: %.in $(top_builddir)/config.status + $(top_builddir)/config.status --file=$@:$< + +# config.status leaves config.log files around +CLEANFILES += config.log + +# figure out whether to put foo.in or foo itself into the dist tarball, based on whether +# foo.in exists. INSTALLPERMS_data = chown=amanda \ - dest=$(templatedir) $(dist_template_DATA) \ - dest=$(exampledir) $(dist_example_DATA) \ - dest=$(libtempldir) $(dist_libtempl_DATA) + dest=$(templatedir) $(template_DATA) \ + dest=$(server_exampledir) $(example_DATA) \ + dest=$(client_exampledir) $(example_DATA) \ + dest=$(lbltempldir) $(lbltempl_DATA)