2000-04-30 22:52:26 +04:00
|
|
|
SHELL = /bin/sh
|
2001-03-13 20:45:02 +03:00
|
|
|
WARN = -Wmissing-prototypes -Wformat
|
2002-12-24 22:39:42 +03:00
|
|
|
OPTS = 'CC=$(CC)'
|
2001-03-13 20:45:02 +03:00
|
|
|
DIRS = src/util src/global src/dns src/master src/postfix src/smtpstone \
|
|
|
|
src/sendmail src/error src/pickup src/cleanup src/smtpd src/local \
|
2004-04-27 08:12:43 +04:00
|
|
|
src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce \
|
|
|
|
src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop \
|
2002-02-03 02:10:24 +03:00
|
|
|
src/postkick src/postlock src/postlog src/postmap src/postqueue \
|
2004-04-27 08:12:43 +04:00
|
|
|
src/postsuper src/qmqpd src/spawn src/flush src/verify \
|
|
|
|
src/virtual src/proxymap
|
2002-02-03 02:10:24 +03:00
|
|
|
MANDIRS = proto man html
|
2000-04-30 22:52:26 +04:00
|
|
|
|
|
|
|
default: update
|
|
|
|
|
|
|
|
makefiles Makefiles:
|
|
|
|
set -e; for i in $(DIRS); do \
|
|
|
|
(set -e; echo "[$$i]"; cd $$i; rm -f Makefile; \
|
2000-12-09 19:52:26 +03:00
|
|
|
$(MAKE) -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
|
2000-04-30 22:52:26 +04:00
|
|
|
done;
|
2000-12-09 19:52:26 +03:00
|
|
|
rm -f Makefile; (set -e; $(SHELL) makedefs && cat Makefile.in) >Makefile
|
2004-04-27 08:12:43 +04:00
|
|
|
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; $(SHELL) makedefs) >makedefs.tmp
|
|
|
|
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
|
|
|
|
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
|
2000-04-30 22:52:26 +04:00
|
|
|
|
2002-12-24 22:39:42 +03:00
|
|
|
update printfck tests:
|
2000-04-30 22:52:26 +04:00
|
|
|
set -e; for i in $(DIRS); do \
|
|
|
|
(set -e; echo "[$$i]"; cd $$i; $(MAKE) $(OPTS) $@ MAKELEVEL=) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2002-02-03 02:10:24 +03:00
|
|
|
manpages:
|
|
|
|
set -e; for i in $(MANDIRS); do \
|
|
|
|
(set -e; echo "[$$i]"; cd $$i; $(MAKE) -f Makefile.in $(OPTS) MAKELEVEL=) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2000-04-30 22:52:26 +04:00
|
|
|
printfck: update
|
|
|
|
|
|
|
|
install: update
|
2002-02-03 02:10:24 +03:00
|
|
|
$(SHELL) postfix-install
|
|
|
|
|
|
|
|
upgrade: update
|
|
|
|
$(SHELL) postfix-install -non-interactive
|
2000-04-30 22:52:26 +04:00
|
|
|
|
|
|
|
depend clean:
|
|
|
|
set -e; for i in $(DIRS); do \
|
|
|
|
(set -e; echo "[$$i]"; cd $$i; $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
depend_update:
|
|
|
|
set -e; for i in $(DIRS); do \
|
|
|
|
(set -e; echo "[$$i]"; cd $$i; $(MAKE) depend && $(MAKE) $(OPTS) update) \
|
|
|
|
|| exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
tidy: clean
|
2001-03-13 20:45:02 +03:00
|
|
|
rm -f Makefile */Makefile src/*/Makefile
|
2000-04-30 22:52:26 +04:00
|
|
|
cp Makefile.init Makefile
|
2002-02-03 02:10:24 +03:00
|
|
|
rm -f bin/[!CRS]* lib/[!CRS]* include/[!CRS]* libexec/[!CRS]* \
|
2001-03-13 20:45:02 +03:00
|
|
|
junk */junk */*/junk \
|
|
|
|
*core */*core */*/*core \
|
|
|
|
.nfs* */.nfs* */*/.nfs* \
|
|
|
|
.pure */.pure */*/.pure \
|
|
|
|
*.out */*.out */*/*.out \
|
2002-12-24 22:39:42 +03:00
|
|
|
*.tmp */*.tmp */*/*.tmp \
|
2001-03-13 20:45:02 +03:00
|
|
|
*.a */*.a */*/*.a \
|
|
|
|
*~ */*~ */*/*~ \
|
|
|
|
*- */*- */*/*- \
|
|
|
|
*.orig */*.orig */*/*.orig \
|
|
|
|
*.bak */*.bak */*/*.bak \
|
|
|
|
make.err */make.err */*/make.err \
|
2002-12-24 22:39:42 +03:00
|
|
|
*.gmon */*.gmon */*/*.gmon \
|
2001-03-13 20:45:02 +03:00
|
|
|
conf/main.cf.default
|
2000-04-30 22:52:26 +04:00
|
|
|
find . -type s -print | xargs rm -f
|
|
|
|
find . -type d -print | xargs chmod 755
|
|
|
|
find . -type f -print | xargs chmod a+r
|