3 ### Build script for rsync-backup
5 ### (c) 2012 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the `rsync-backup' program.
12 ### rsync-backup is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
17 ### rsync-backup is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
22 ### You should have received a copy of the GNU General Public License
23 ### along with rsync-backup; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36 AM_CFLAGS = $(mLib_CFLAGS)
38 ###--------------------------------------------------------------------------
39 ### Substitution of configuration data.
41 confsubst = $(top_srcdir)/config/confsubst
42 EXTRA_DIST += config/confsubst
45 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
46 BASH="$(BASH)" PYTHON="$(PYTHON)" \
47 sysconfdir="$(sysconfdir)" \
48 mntbkpdir="$(mntbkpdir)" \
49 fshashdir="$(fshashdir)" \
52 V_SUBST = $(V_SUBST_$V)
53 V_SUBST_= $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
54 V_SUBST_0 = @printf " SUBST %s\n" $@;
56 SUBST = $(V_SUBST)$(confsubst)
58 ###--------------------------------------------------------------------------
59 ### Programs and scripts.
61 sbin_PROGRAMS += rfreezefs
62 dist_man_MANS += rfreezefs.8
63 rfreezefs_SOURCES = rfreezefs.c
64 rfreezefs_LDADD = $(mLib_LIBS)
66 sbin_SCRIPTS += rsync-backup
67 dist_man_MANS += rsync-backup.8
68 CLEANFILES += rsync-backup
69 EXTRA_DIST += rsync-backup.in
70 rsync-backup: rsync-backup.in Makefile
71 $(SUBST) >rsync-backup.new \
72 $(srcdir)/rsync-backup.in $(SUBSTVARS) && \
73 chmod +x rsync-backup.new && \
74 mv rsync-backup.new rsync-backup
77 dist_man_MANS += fshash.1
79 EXTRA_DIST += fshash.in
80 fshash: fshash.in Makefile
81 $(SUBST) >fshash.new \
82 $(srcdir)/fshash.in $(SUBSTVARS) && \
83 chmod +x fshash.new && \
86 ###--------------------------------------------------------------------------
87 ### Contributed scripts.
89 ## Some simple scripts showing how one might create and manage backup
90 ## volumes. Assume the distorted.org.uk key management machinery.
91 dist_noinst_SCRIPTS += create-backup-volume
92 dist_noinst_SCRIPTS += mount-backup-volume
93 dist_noinst_SCRIPTS += umount-backup-volume
95 ###--------------------------------------------------------------------------
96 ### Release machinery.
98 EXTRA_DIST += config/auto-version
101 echo $(VERSION) >$(distdir)/RELEASE
103 ###----- That's all, folks --------------------------------------------------