Test and document --keep-directory-symlink
[tar.git] / scripts / Makefile.am
blob3e315b78dd558679850050c08023345c6e7cfa4c
1 # Make GNU tar scripts.
3 # Copyright 2004, 2006-2007, 2013-2014, 2016-2017 Free Software
4 # Foundation, Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 BACKUP_LIBEXEC_SCRIPTS_LIST=backup.sh dump-remind
22 BACKUP_SBIN_SCRIPTS_LIST=backup restore
23 libexec_SCRIPTS=@BACKUP_LIBEXEC_SCRIPTS@
24 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT=backup.sh dump-remind
25 sbin_SCRIPTS=@BACKUP_SBIN_SCRIPTS@
26 EXTRA_SCRIPTS=tarcat
27 EXTRA_DIST=\
28  backup.sh.in\
29  backup.in\
30  restore.in\
31  dump-remind.in\
32  backup-specs
33 CLEANFILES=backup.sh backup restore dump-remind
35 SED_CMD="s,\@libexecdir\@,$(libexecdir),;\
36          s,\@sysconfdir\@,$(sysconfdir),;\
37          s,\@PACKAGE_NAME\@,$(PACKAGE_NAME),;\
38          s,\@VERSION\@,$(VERSION),;\
39          s,\@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),;\
40          s,\@DATE_FORMAT_OK\@,$(DATE_FORMAT_OK),;@BACKUP_SED_COND@"
42 backup.sh: $(srcdir)/backup.sh.in
43         sed $(SED_CMD) $? > $@
45 backup: $(srcdir)/backup.in
46         sed $(SED_CMD) $? > $@
48 restore: $(srcdir)/restore.in
49         sed $(SED_CMD) $? > $@
51 dump-remind: $(srcdir)/dump-remind.in
52         sed $(SED_CMD) $? > $@