18 MKDIR = $(topdir)/autoconf/mkinstalldirs
20 #-------------------------------------------------------------------------
28 #-------------------------------------------------------------------------
35 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
37 ${RMF} -f config.cache config.log config.out config.status src/config.h
38 autoconf --prepend-include=$(srcdir)/autoconf \
39 autoconf/configure.in > configure
44 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
47 $(SHELL) config.status
50 @$(RMF) *~ 1 2 3 diff */diff *.tar.gz
51 @$(RMF) config.log config.out config.status
52 @rm -rf autom4te.cache
54 # clean for distribution
59 @for subdir in freebsd linux solaris; do \
60 if [ -f $${subdir}/Makefile ]; then \
61 (cd $${subdir}; $(MAKE) devclean) \
65 (cwd=`pwd`; rm -rf /tmp/bacula-web-$(VERSION); \
66 cd ..; cp -rp $$cwd/bacula-web /tmp/bacula-web-$(VERSION); \
67 cd /tmp/bacula-web-$(VERSION); \
69 find . -name ".#*" -exec rm -rf {} \; ; \
70 find . -name "CVS" -exec rm -rf {} \; ; \
71 find . -name ".cvsignore" -exec rm -rf {} \; ; \
72 rm -rf autom4te.cache; \
74 tar cvfz $$cwd/bacula-web-$(VERSION).tar.gz bacula-web-$(VERSION); \
75 rm -rf /tmp/bacula-web-$(VERSION); \
77 echo "bacula-web release is in: $$cwd/bacula-web-$(VERSION).tar.gz"; \
81 (cwd=`pwd`; rm -rf /tmp/bimagemgr-$(VERSION); \
82 cd ..; cp -rp $$cwd/bimagemgr /tmp/bimagemgr-$(VERSION); \
83 cd /tmp/bimagemgr-$(VERSION); \
85 find . -name ".#*" -exec rm -rf {} \; ; \
86 find . -name "CVS" -exec rm -rf {} \; ; \
87 find . -name ".cvsignore" -exec rm -rf {} \; ; \
88 rm -rf autom4te.cache; \
90 tar cvfz $$cwd/bimagemgr-$(VERSION).tar.gz bimagemgr-$(VERSION); \
91 rm -rf /tmp/bimagemgr-$(VERSION); \
93 echo "bimagemgr release is in: $$cwd/bimagemgr-$(VERSION).tar.gz"; \
97 (cwd=`pwd`; rm -rf /tmp/brestore-$(VERSION); \
98 cd ..; cp -rp $$cwd/brestore /tmp/brestore-$(VERSION); \
99 cd /tmp/brestore-$(VERSION); \
101 find . -name ".#*" -exec rm -rf {} \; ; \
102 find . -name "CVS" -exec rm -rf {} \; ; \
103 find . -name ".cvsignore" -exec rm -rf {} \; ; \
104 rm -rf autom4te.cache; \
106 tar cvfz $$cwd/brestore-$(VERSION).tar.gz brestore-$(VERSION); \
107 rm -rf /tmp/brestore-$(VERSION); \
109 echo "brestore release is in: $$cwd/brestore-$(VERSION).tar.gz"; \
113 (cwd=`pwd`; rm -rf /tmp/bweb-$(VERSION); \
114 cd ..; cp -rp $$cwd/bweb /tmp/bweb-$(VERSION); \
115 cd /tmp/bweb-$(VERSION); \
117 find . -name ".#*" -exec rm -rf {} \; ; \
118 find . -name "CVS" -exec rm -rf {} \; ; \
119 find . -name ".cvsignore" -exec rm -rf {} \; ; \
120 rm -rf autom4te.cache; \
122 tar cvfz $$cwd/bweb-$(VERSION).tar.gz bweb-$(VERSION); \
123 rm -rf /tmp/bweb-$(VERSION); \
125 echo "bweb release is in: $$cwd/bweb-$(VERSION).tar.gz"; \
128 release: clean release-bacula-web release-bimagemgr release-brestore release-bweb
130 # ------------------------------------------------------------------------