Clean up the Makefile handling of autoconf files; add check for

tcpwrappers.
This commit is contained in:
hpa 2001-04-23 05:40:39 +00:00
parent fa9f7c3e12
commit 7eb7968b74
5 changed files with 184 additions and 60 deletions

View file

@ -15,12 +15,24 @@ SUB = lib tftp tftpd
%.spotless:
$(MAKE) -C $(patsubst %.spotless, %, $@) spotless
all: $(patsubst %, %.build, $(SUB))
all: MCONFIG $(patsubst %, %.build, $(SUB))
install: $(patsubst %, %.install, $(SUB))
install: MCONFIG $(patsubst %, %.install, $(SUB))
clean: $(patsubst %, %.clean, $(SUB))
clean: MCONFIG $(patsubst %, %.clean, $(SUB))
spotless: $(patsubst %, %.spotless, $(SUB))
spotless: MCONFIG $(patsubst %, %.spotless, $(SUB))
rm -f MCONFIG config.cache config.log config.h *~ \#*
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
config: MCONFIG
MCONFIG: configure MCONFIG.in config.h.in
./configure
config.h: MCONFIG
: Generated by side effect
configure: configure.in aclocal.m4
autoconf
rm -f MCONFIG config.cache config.log config.h