]> git.sur5r.net Git - bacula/bacula/blob - bacula/Makefile.in
Add --enable-wx-console
[bacula/bacula] / bacula / 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 = .
13
14
15 first_rule: all
16 dummy:
17
18 fd_subdirs = src scripts doc src/lib src/findlib src/filed \
19              @READLINE_SRC@ src/console rescue rescue/linux
20
21
22 subdirs =    src/cats src/dird src/stored @GNOME_DIR@ @WX_DIR@ src/tools
23
24 all_subdirs = ${fd_subdirs} ${@ALL_DIRS@}
25
26 DIST =  INSTALL README.configure configure Makefile Makefile.in ChangeLog
27
28 DIST_CFG = autoconf/aclocal.m4 autoconf/configure.in \
29         autoconf/config.h.in  autoconf/acconfig.h  autoconf/Make.common.in \
30         autoconf/install-sh autoconf/mkinstalldirs
31
32 MKDIR = $(srcdir)/autoconf/mkinstalldirs
33
34 #-------------------------------------------------------------------------
35
36 all: Makefile
37         @for I in ${all_subdirs}; \
38           do (cd $$I; echo "==>Entering directory `pwd`"; \
39               $(MAKE) $@ || (echo ""; echo ""; echo -e "  \a\a ====== Error in `pwd` ======\a\a"; \
40                             echo ""; echo "";)); \
41         done
42
43 depend:
44         @for I in ${all_subdirs}; \
45           do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
46         
47 bacula-fd: Makefile        
48         @for I in ${fd_subdirs}; \
49           do (cd $$I; echo "==>Entering directory `pwd`"; \
50               $(MAKE) all || (echo ""; echo ""; echo -e "  \a\a ====== Error in `pwd` ======\a\a"; \
51                             echo ""; echo "";)); \
52         done
53
54 #-------------------------------------------------------------------------
55 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
56         cd $(srcdir);
57         ${RMF} -f config.cache config.log config.out config.status src/config.h
58         autoconf --prepend-include=$(srcdir)/autoconf \
59         autoconf/configure.in > configure
60         chmod 755 configure
61
62 old-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
63         cd $(srcdir);
64         ${RMF} -f config.cache config.log config.out config.status src/config.h
65         autoconf --include=$(srcdir)/autoconf \
66         autoconf/configure.in > configure
67         chmod 755 configure
68         @rm -f config.cache
69
70 config.status:
71         if test -x config.status; then config.status --recheck; \
72         else $(SHELL) configure; fi
73
74 autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h
75         cd $(srcdir);
76         ${RMF} -f config.cache config.log config.out config.status src/config.h
77         autoheader --prepend-include=$(srcdir)/autoconf \
78         autoconf/configure.in > autoconf/config.h.in
79         chmod 644 autoconf/config.h.in
80
81 installdirs:
82         $(MKDIR) $(DESTDIR)$(sbindir)
83         $(MKDIR) $(DESTDIR)$(sysconfdir)
84         $(MKDIR) $(DESTDIR)$(scriptdir)
85         $(MKDIR) $(DESTDIR)$(working_dir)
86 #       $(MKDIR) $(DESTDIR)$(mandir)
87
88 gnomedirs:
89         $(MKDIR) $(DESTDIR)/usr/share/pixmaps
90         $(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System
91         $(MKDIR) $(DESTDIR)/usr/share/applications
92         $(MKDIR) $(DESTDIR)/etc/security/console.apps
93         $(MKDIR) $(DESTDIR)/etc/pam.d
94
95 install-menu: gnomedirs
96         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
97         ${INSTALL_DATA} scripts/bacula.desktop.gnome1 $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
98         ${INSTALL_DATA} scripts/bacula.desktop.gnome2 $(DESTDIR)/usr/share/applications/bacula.desktop
99
100 install-menu-xsu: gnomedirs
101         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
102         ${INSTALL_DATA} scripts/bacula.desktop.gnome1.xsu $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
103         ${INSTALL_DATA} scripts/bacula.desktop.gnome2.xsu $(DESTDIR)/usr/share/applications/bacula.desktop
104
105 install-menu-consolehelper: gnomedirs
106         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
107         ${INSTALL_DATA} scripts/bacula.desktop.gnome1.consolehelper $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
108         ${INSTALL_DATA} scripts/bacula.desktop.gnome2.consolehelper $(DESTDIR)/usr/share/applications/bacula.desktop
109         ${INSTALL_DATA} scripts/gnome-console.console_apps $(DESTDIR)/etc/security/console.apps/gnome-console
110         ${INSTALL_DATA} scripts/gnome-console.pamd $(DESTDIR)/etc/pam.d/gnome-console
111         ln -s $(DESTDIR)/usr/bin/consolehelper $(DESTDIR)/usr/bin/gnome-console
112
113 install: installdirs
114         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
115
116 uninstall:
117         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
118
119 install-autostart:
120         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
121
122 install-autostart-dir:
123         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
124
125 install-autostart-fd:
126         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
127
128 install-autostart-sd:
129         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
130
131 uninstall-autostart:
132         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
133
134 uninstall-autostart-dir:
135         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
136
137 uninstall-autostart-fd:
138         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
139
140 uninstall-autostart-sd:
141         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
142
143 uninstall-menu:
144         rm -f $(DESTDIR)/usr/share/pixmaps/bacula.png
145         rm -f $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
146         rm -f $(DESTDIR)/usr/share/applications/bacula.desktop
147
148 uninstall-menu-consolehelper:
149         rm -f $(DESTDIR)/usr/share/pixmaps/bacula.png
150         rm -f $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
151         rm -f $(DESTDIR)/usr/share/applications/bacula.desktop
152         rm -f $(DESTDIR)/etc/security/console.apps/gnome-console
153         rm -f $(DESTDIR)/etc/pam.d/gnome-console
154         rm -f $(DESTDIR)/usr/bin/gnome-console
155
156
157 Makefile: Makefile.in
158         cd $(topdir) \
159             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
160
161 Makefiles:
162         $(SHELL) config.status
163         (cd scripts; \
164         chmod 755 startmysql stopmysql bacula fd startit stopit btraceback; \
165         chmod 755 mtx-changer bconsole gconsole devel_bacula)
166
167         (cd src/cats; \
168         chmod 755 create_bacula_database      update_bacula_tables     make_bacula_tables; \
169         chmod 755 grant_bacula_privileges     drop_bacula_tables       drop_bacula_database; \
170            \
171         chmod 755 create_@DB_NAME@_database   update_@DB_NAME@_tables  make_@DB_NAME@_tables; \
172         chmod 755 grant_@DB_NAME@_privileges  drop_@DB_NAME@_tables    drop_@DB_NAME@_database; \
173            \
174         chmod 755 make_catalog_backup delete_catalog_backup)
175
176 clean:
177         @for I in ${all_subdirs}; \
178           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
179         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
180         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
181         @$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2
182
183
184 # clean for distribution
185 distclean:
186         @for I in $(all_subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
187         @for I in $(all_subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
188         @(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
189         @(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
190         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
191         @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback
192         @$(RMF) bconsole gconsole
193         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
194         @$(RMF) working/*
195         @$(RMF) -r examples/devices/CVS autoconf/CVS autoconf/gnome-macros/CVS
196         @$(RMF) -r doc/techlogs/2002/CVS doc/techlogs/2001/CVS doc/techlogs/1.27/CVS
197         @$(RMF) -r examples/CVS intl/CVS scripts/CVS
198         @$(RMF) -r po/CVS src/immortal/CVS rescue/freebsd/CVS rescue/solaris/CVS
199         @$(RMF) -r CVS src/gnome-console/CVS src/tconsole/CVS
200
201 devclean:
202         @for I in $(all_subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
203         @for I in $(all_subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
204         @(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
205         @(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
206         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
207         @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback
208         @$(RMF) bconsole gconsole
209         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
210         @$(RMF) working/*
211
212 distdirs:
213         mkdir ../$(VERNAME);
214         mkdir ../$(VERNAME)/autoconf;
215         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo "Failed to make distclean in $$I"; exit 0) ); done
216
217 distcopy:
218         $(CP) -p $(DIST) ../$(VERNAME);
219         $(CP) -p $(DIST_CFG) ../$(VERNAME)/autoconf;
220         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
221
222 distrib: configure autoconf/config.h.in distdirs distcopy
223
224 test:
225
226
227 tar.gz:  ../$(VERNAME).tar.gz
228 ../$(VERNAME).tar.gz:
229         (cd ..; tar cvf - $(VERNAME) | gzip -f9 > $(VERNAME).tar.gz)
230
231 tar.Z: ../$(VERNAME).tar.Z
232 ../$(VERNAME).tar.Z:
233         (cd ..; tar cvf - $(VERNAME) | compress > $(VERNAME).tar.Z)
234
235 tar.bz2: ../$(VERNAME).tar.bz2
236 ../$(VERNAME).tar.bz2:
237         (cd ..; tar cvf - $(VERNAME) | bzip2 -f9 > $(VERNAME).tar.bz2)
238
239 uuencode: tar.gz
240         uuencode ../$(VERNAME).tar.gz $(VERNAME).tar.gz > ../$(VERNAME).tgz.uu
241
242 # ------------------------------------------------------------------------