]> git.sur5r.net Git - bacula/bacula/blob - bacula/scripts/Makefile.in
Add drive name to reserved Volume list printout in SD.
[bacula/bacula] / bacula / scripts / Makefile.in
1
2 # Version $Id$
3
4 @MCOMMON@
5
6 working_dir=@working_dir@
7
8 srcdir =        @srcdir@
9 VPATH =         @srcdir@
10 .PATH:          @srcdir@
11 topdir = ..
12 thisdir = scripts
13
14
15 first_rule: all
16 dummy:
17
18 MKDIR = $(topdir)/autoconf/mkinstalldirs
19
20 #-------------------------------------------------------------------------
21
22 all: Makefile
23
24 depend:
25         
26
27 #-------------------------------------------------------------------------
28
29 installdirs:
30         $(MKDIR) $(DESTDIR)$(sysconfdir)
31         $(MKDIR) $(DESTDIR)$(sbindir)
32         $(MKDIR) $(DESTDIR)$(scriptdir)
33         $(MKDIR) $(DESTDIR)$(mandir)
34
35 install: installdirs
36         $(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql
37         $(INSTALL_SCRIPT) stopmysql $(DESTDIR)$(scriptdir)/stopmysql
38         $(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole
39         $(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole
40         $(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula
41         @if  test -f ${DESTDIR}${scriptdir}/mtx-changer; then \
42            echo "  ==> Saving existing mtx-changer to mtx-changer.old"; \
43            $(MV) -f ${DESTDIR}${scriptdir}/mtx-changer ${DESTDIR}${scriptdir}/mtx-changer.old; \
44         fi
45         $(INSTALL_SCRIPT) mtx-changer $(DESTDIR)$(scriptdir)/mtx-changer
46         @if  test -f ${DESTDIR}${scriptdir}/dvd-writepart; then \
47            echo "  ==> Saving existing dvd-writepart to dvd-writepart.old"; \
48            $(MV) -f ${DESTDIR}${scriptdir}/dvd-writepart ${DESTDIR}${scriptdir}/dvd-writepart.old; \
49         fi
50         $(INSTALL_SCRIPT) dvd-writepart $(DESTDIR)$(scriptdir)/dvd-writepart
51         @if  test -f ${DESTDIR}${scriptdir}/dvd-freespace; then \
52            echo "  ==> Saving existing dvd-freespace to dvd-freespace.old"; \
53            $(MV) -f ${DESTDIR}${scriptdir}/dvd-freespace ${DESTDIR}${scriptdir}/dvd-freespace.old; \
54         fi
55         $(INSTALL_SCRIPT) dvd-freespace $(DESTDIR)$(scriptdir)/dvd-freespace
56         $(INSTALL_DATA)   btraceback.gdb $(DESTDIR)$(scriptdir)/btraceback.gdb
57         $(INSTALL_DATA)   btraceback.dbx $(DESTDIR)$(scriptdir)/btraceback.dbx
58         $(INSTALL_SCRIPT) btraceback $(DESTDIR)$(sbindir)/btraceback
59         gzip <bacula.man >bacula.8.gz
60         $(INSTALL_DATA)   bacula.8.gz $(DESTDIR)$(mandir)/bacula.8.gz
61         @rm -f bacula.8.gz
62
63
64 uninstall:
65         (cd $(DESTDIR)$(scriptdir); $(RMF) startmysql)
66         (cd $(DESTDIR)$(scriptdir); $(RMF) stopmysql)
67         (cd $(DESTDIR)$(scriptdir); $(RMF) bconsole)
68         (cd $(DESTDIR)$(scriptdir); $(RMF) gconsole)
69         (cd $(DESTDIR)$(scriptdir); $(RMF) bacula)
70         (cd $(DESTDIR)$(scriptdir); $(RMF) fd)
71         (cd $(DESTDIR)$(scriptdir); $(RMF) mtx-changer)
72         (cd $(DESTDIR)$(scriptdir); $(RMF) dvd-writepart) 
73         (cd $(DESTDIR)$(scriptdir); $(RMF) dvd-freespace) 
74         (cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.gdb)
75         (cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.dbx)
76         (cd $(DESTDIR)$(sbindir); $(RMF) btraceback)
77         (cd $(DESTDIR)$(mandir); $(RMF) bacula.8.gz)
78
79 Makefile: Makefile.in
80         cd $(topdir) \
81             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82         chmod 755 startmysql stopmysql bacula startit stopit btraceback
83         chmod 755 mtx-changer dvd-writepart dvd-freespace bconsole gconsole
84
85 Makefiles:
86         $(SHELL) config.status
87         chmod 755 startmysql stopmysql bacula startit stopit btraceback
88         chmod 755 mtx-changer dvd-writepart dvd-freespace bconsole gconsole
89
90 clean:
91         @$(RMF) *~ 1 2 3
92
93 # clean for distribution
94 distclean: clean
95         @$(RMF) startmysql stopmysql bacula fd startit stopit btraceback
96         @$(RMF) bconsole gconsole logrotate bacula.desktop 
97         @$(RMF) bacula.desktop.gnome1 bacula.desktop.gnome2 mtx-changer dvd-writepart dvd-freespace
98         @$(RMF) gnome-console.console_apps bacula.desktop.gnome2.xsu
99         @$(RMF) bacula.desktop.gnome2.consolehelper bacula.desktop.gnome1.xsu
100         @$(RMF) bacula.desktop.gnome1.consolehelper
101
102 # ------------------------------------------------------------------------