68 lines
2.0 KiB
Makefile
68 lines
2.0 KiB
Makefile
SHELL = /bin/sh
|
|
WARN = -Wmissing-prototypes -Wformat
|
|
OPTS = "CC=$(CC)"
|
|
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 \
|
|
src/lmtp src/trivial-rewrite src/qmgr src/smtp src/bounce src/pipe \
|
|
src/showq src/postalias src/postcat src/postconf src/postdrop \
|
|
src/postkick src/postlock src/postlog src/postmap src/postsuper \
|
|
src/spawn src/flush # proto man html
|
|
|
|
default: update
|
|
|
|
makefiles Makefiles:
|
|
set -e; for i in $(DIRS); do \
|
|
(set -e; echo "[$$i]"; cd $$i; rm -f Makefile; \
|
|
$(MAKE) -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
|
|
done;
|
|
rm -f Makefile; (set -e; $(SHELL) makedefs && cat Makefile.in) >Makefile
|
|
|
|
update printfck:
|
|
set -e; for i in $(DIRS); do \
|
|
(set -e; echo "[$$i]"; cd $$i; $(MAKE) $(OPTS) $@ MAKELEVEL=) || exit 1; \
|
|
done
|
|
|
|
printfck: update
|
|
|
|
install: update
|
|
sh INSTALL.sh
|
|
|
|
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
|
|
|
|
cleanmakefiles:
|
|
set -e; for i in $(DIRS); do \
|
|
(set -e; echo "[$$i]"; cd $$i; rm -f Makefile; \
|
|
../cleanup_makefile.pl Makefile.in >Makefile.new; \
|
|
rm Makefile.in ; mv Makefile.new Makefile.in); \
|
|
done;
|
|
rm -f Makefile; (set -e; sh makedefs && cat Makefile.in) >Makefile
|
|
|
|
tidy: clean
|
|
rm -f Makefile */Makefile src/*/Makefile
|
|
cp Makefile.init Makefile
|
|
rm -f bin/* lib/* include/* libexec/* \
|
|
junk */junk */*/junk \
|
|
*core */*core */*/*core \
|
|
.nfs* */.nfs* */*/.nfs* \
|
|
.pure */.pure */*/.pure \
|
|
*.out */*.out */*/*.out \
|
|
*.a */*.a */*/*.a \
|
|
*~ */*~ */*/*~ \
|
|
*- */*- */*/*- \
|
|
*.orig */*.orig */*/*.orig \
|
|
*.bak */*.bak */*/*.bak \
|
|
make.err */make.err */*/make.err \
|
|
conf/main.cf.default
|
|
find . -type s -print | xargs rm -f
|
|
find . -type d -print | xargs chmod 755
|
|
find . -type f -print | xargs chmod a+r
|