forked from mirrors/tftp-hpa-google
Makefile/configure cleanups; prepare for release
This commit is contained in:
parent
9c3ab465f2
commit
d05bd6fa96
4 changed files with 35 additions and 15 deletions
28
Makefile
28
Makefile
|
@ -3,10 +3,10 @@
|
|||
|
||||
SUB = lib tftp tftpd
|
||||
|
||||
%.build: MCONFIG acconfig.h version.h
|
||||
%.build: MCONFIG aconfig.h version.h
|
||||
$(MAKE) -C $(patsubst %.build, %, $@)
|
||||
|
||||
%.install: MCONFIG acconfig.h version.h
|
||||
%.install: MCONFIG aconfig.h version.h
|
||||
$(MAKE) -C $(patsubst %.install, %, $@) install
|
||||
|
||||
%.clean:
|
||||
|
@ -30,36 +30,40 @@ localclean:
|
|||
distclean: localdistclean $(patsubst %, %.distclean, $(SUB))
|
||||
|
||||
localdistclean: localclean
|
||||
rm -f MCONFIG config.status config.log acconfig.h *~ \#*
|
||||
rm -f MCONFIG config.status config.log aconfig.h *~ \#*
|
||||
rm -rf *.cache
|
||||
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs rm -f
|
||||
|
||||
spotless: distclean
|
||||
rm -f configure acconfig.h.in
|
||||
rm -f configure aconfig.h.in
|
||||
|
||||
autoconf: configure acconfig.h.in
|
||||
autoconf: configure aconfig.h.in
|
||||
|
||||
config: MCONFIG acconfig.h
|
||||
config: MCONFIG aconfig.h
|
||||
|
||||
release:
|
||||
$(MAKE) autoconf
|
||||
$(MAKE) distclean
|
||||
|
||||
MCONFIG: configure MCONFIG.in acconfig.h.in
|
||||
if test -x config.status; then ./config.status; else ./configure; fi
|
||||
MCONFIG: configure MCONFIG.in aconfig.h.in
|
||||
if test -x config.status; then \
|
||||
./config.status --recheck && ./config.status ; \
|
||||
else \
|
||||
./configure ; \
|
||||
fi
|
||||
|
||||
acconfig.h: MCONFIG
|
||||
aconfig.h: MCONFIG
|
||||
: Generated by side effect
|
||||
|
||||
# Adding "configure" to the dependencies serializes this with running
|
||||
# autoconf, because there are apparently race conditions between
|
||||
# autoconf and autoheader.
|
||||
acconfig.h.in: configure.in configure aclocal.m4
|
||||
rm -f acconfig.h.in acconfig.h
|
||||
aconfig.h.in: configure.in configure aclocal.m4
|
||||
rm -f aconfig.h.in aconfig.h
|
||||
autoheader
|
||||
|
||||
configure: configure.in aclocal.m4
|
||||
rm -f MCONFIG configure config.log acconfig.h config.cache
|
||||
rm -rf MCONFIG configure config.log aconfig.h *.cache
|
||||
autoconf
|
||||
|
||||
version.h: version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue