7 # autoconf/Make.common.in -*- Makefile -*-
8 # release date (man), LSM date, version number/name, current maintainer
12 VERNAME=bacula-$(VERSION)#
14 MAINTEMAIL=<kern@sibbald.com>#
15 #-------------------------------------------------------------------------
19 # Installation target directories & other installation stuff
21 exec_prefix = ${prefix}
24 sbindir = ${exec_prefix}/sbin
25 sysconfdir = ${prefix}/etc
26 scriptdir = @scriptdir@
27 mandir = ${prefix}/man/man1
30 # Tools & program stuff
39 INSTALL = /usr/bin/install -c
40 # add the -s to the following in PRODUCTION mode
41 INSTALL_PROGRAM = /usr/bin/install -c -m @SBINPERM@
42 INSTALL_DATA = /usr/bin/install -c -m 644
43 INSTALL_SCRIPT = /usr/bin/install -c -m @SBINPERM@
44 INSTALL_CONFIG = /usr/bin/install -c -m 640
47 # End of common section of the Makefile
48 #-------------------------------------------------------------------------
60 MKDIR = $(topdir)/autoconf/mkinstalldirs
62 #-------------------------------------------------------------------------
70 #-------------------------------------------------------------------------
77 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
79 ${RMF} -f config.cache config.log config.out config.status src/config.h
80 autoconf --prepend-include=$(srcdir)/autoconf \
81 autoconf/configure.in > configure
86 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
89 $(SHELL) config.status
92 @$(RMF) *~ 1 2 3 diff */diff *.tar.gz
93 @$(RMF) config.log config.out config.status
94 @rm -rf autom4te.cache
96 # clean for distribution
101 @for subdir in freebsd linux solaris; do \
102 if [ -f $${subdir}/Makefile ]; then \
103 (cd $${subdir}; $(MAKE) devclean) \
107 (cwd=`pwd`; rm -rf /tmp/bacula-web-$(VERSION); \
108 cd ..; cp -rp $$cwd/bacula-web /tmp/bacula-web-$(VERSION); \
109 cd /tmp/bacula-web-$(VERSION); \
111 find . -name ".#*" -exec rm -rf {} \; ; \
112 find . -name "CVS" -exec rm -rf {} \; ; \
113 find . -name ".cvsignore" -exec rm -rf {} \; ; \
114 rm -rf autom4te.cache; \
116 tar cvfz $$cwd/bacula-web-$(VERSION).tar.gz bacula-web-$(VERSION); \
117 rm -rf /tmp/bacula-web-$(VERSION); \
119 echo "bacula-web release is in: $$cwd/bacula-web-$(VERSION).tar.gz"; \
123 (cwd=`pwd`; rm -rf /tmp/bimagemgr-$(VERSION); \
124 cd ..; cp -rp $$cwd/bimagemgr /tmp/bimagemgr-$(VERSION); \
125 cd /tmp/bimagemgr-$(VERSION); \
127 find . -name ".#*" -exec rm -rf {} \; ; \
128 find . -name "CVS" -exec rm -rf {} \; ; \
129 find . -name ".cvsignore" -exec rm -rf {} \; ; \
130 rm -rf autom4te.cache; \
132 tar cvfz $$cwd/bimagemgr-$(VERSION).tar.gz bimagemgr-$(VERSION); \
133 rm -rf /tmp/bimagemgr-$(VERSION); \
135 echo "bimagemgr release is in: $$cwd/bimagemgr-$(VERSION).tar.gz"; \
139 (cwd=`pwd`; rm -rf /tmp/brestore-$(VERSION); \
140 cd ..; cp -rp $$cwd/brestore /tmp/brestore-$(VERSION); \
141 cd /tmp/brestore-$(VERSION); \
143 find . -name ".#*" -exec rm -rf {} \; ; \
144 find . -name "CVS" -exec rm -rf {} \; ; \
145 find . -name ".cvsignore" -exec rm -rf {} \; ; \
146 rm -rf autom4te.cache; \
148 tar cvfz $$cwd/brestore-$(VERSION).tar.gz brestore-$(VERSION); \
149 rm -rf /tmp/brestore-$(VERSION); \
151 echo "brestore release is in: $$cwd/brestore-$(VERSION).tar.gz"; \
155 (cwd=`pwd`; rm -rf /tmp/bweb-$(VERSION); \
156 cd ..; cp -rp $$cwd/bweb /tmp/bweb-$(VERSION); \
157 cd /tmp/bweb-$(VERSION); \
159 find . -name ".#*" -exec rm -rf {} \; ; \
160 find . -name "CVS" -exec rm -rf {} \; ; \
161 find . -name ".cvsignore" -exec rm -rf {} \; ; \
162 rm -rf autom4te.cache; \
164 tar cvfz $$cwd/bweb-$(VERSION).tar.gz bweb-$(VERSION); \
165 rm -rf /tmp/bweb-$(VERSION); \
167 echo "bweb release is in: $$cwd/bweb-$(VERSION).tar.gz"; \
170 release: clean release-bacula-web release-bimagemgr release-brestore release-bweb
172 # ------------------------------------------------------------------------