]> git.cworth.org Git - tar/blob - scripts/Makefile.am
Imported Upstream version 1.20
[tar] / scripts / Makefile.am
1 # Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
2
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 3, or (at your option)
6 ## any later version.
7
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 ## GNU General Public License for more details.
12
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program; if not, write to the Free Software
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 ## 02110-1301, USA.
17
18 BACKUP_LIBEXEC_SCRIPTS_LIST=backup.sh dump-remind
19 BACKUP_SBIN_SCRIPTS_LIST=backup restore
20 libexec_SCRIPTS=@BACKUP_LIBEXEC_SCRIPTS@
21 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT=backup.sh dump-remind
22 sbin_SCRIPTS=@BACKUP_SBIN_SCRIPTS@
23 EXTRA_SCRIPTS=tarcat
24 EXTRA_DIST=\
25  backup.sh.in\
26  backup.in\
27  restore.in\
28  dump-remind.in\
29  backup-specs
30 CLEANFILES=backup.sh backup restore dump-remind
31
32 SED_CMD="s,\@libexecdir\@,$(libexecdir),;\
33          s,\@sysconfdir\@,$(sysconfdir),;\
34          s,\@PACKAGE_NAME\@,$(PACKAGE_NAME),;\
35          s,\@VERSION\@,$(VERSION),;\
36          s,\@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),;\
37          s,\@DATE_FORMAT_OK\@,$(DATE_FORMAT_OK),;@BACKUP_SED_COND@"
38
39 backup.sh: $(srcdir)/backup.sh.in
40         sed $(SED_CMD) $? > $@
41
42 backup: $(srcdir)/backup.in
43         sed $(SED_CMD) $? > $@
44
45 restore: $(srcdir)/restore.in
46         sed $(SED_CMD) $? > $@
47
48 dump-remind: $(srcdir)/dump-remind.in
49         sed $(SED_CMD) $? > $@