4 # This file is part of chiark backup, a system for backing up GNU/Linux and
5 # other UN*X-compatible machines, as used on chiark.greenend.org.uk.
8 # Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
9 # Copyright (C) 1999 Peter Maydell <pmaydell@chiark.greenend.org.uk>
11 # This is free software; you can redistribute it and/or modify it under the
12 # terms of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2, or (at your option) any later version.
15 # This is distributed in the hope that it will be useful, but WITHOUT ANY
16 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
20 # You should have received a copy of the GNU General Public License along
21 # with this program; if not, write to the Free Software Foundation, Inc.,
22 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 include ../settings.make
28 BINSCRIPTS= checkallused loaded driver takedown whatsthis labeltape
29 SHARESCRIPTS= bringup full increm snap-drop
30 SHAREFILES= backuplib.pl
31 SNAPKINDS= lvm remount
33 EXAMPLES= relativity chiark
38 $(INSTALL_DIRECTORY) $(confdir) $(confdir)/snap $(bindir) \
39 $(sharedir) $(vardir) $(man1dir)
40 set -e; for s in $(BINSCRIPTS); do \
41 $(INSTALL_SCRIPT) $$s $(bindir)/backup-$$s; done
42 $(INSTALL_SHARE) $(SHAREFILES) $(sharedir)
43 $(INSTALL_SCRIPT) $(SHARESCRIPTS) $(sharedir)
44 set -e; for s in $(SNAPKINDS); do \
45 d=$(confdir)/snap/$$s; \
46 test ! -f $$d || d=$$d.dist; \
47 $(INSTALL_SCRIPT) $$s $$d; done
50 $(INSTALL_DIRECTORY) $(txtdocdir)
51 $(INSTALL_SHARE) iwjbackup.txt $(txtdocdir)/README
54 set -e; for e in $(EXAMPLES); do \
56 $(INSTALL_DIRECTORY) $(exampledir)/$$e; \
57 $(INSTALL_SHARE) [^A-Z]*[^~] $(exampledir)/$$e; \
58 if test -f SYMLINKS.tar; then \
60 (set -e; cd $(exampledir)/$$e && tar -xf -); \
68 distclean realclean: clean