mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 21:13:56 +01:00
$(TOPDIR), make: Preserving targets over config target invocation
This commit is contained in:
parent
18010ab1b3
commit
b96b1b7e37
4 changed files with 11 additions and 4 deletions
|
|
@ -3,16 +3,21 @@
|
|||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
CONFIG_ACDONE := $(wildcard config.acdone)
|
||||
CLEAN += $(wildcard *.acdone)
|
||||
DISTCLEAN += configure config.log autoscan.log configure.ac config.status
|
||||
AC_FILES_IN = $(shell find . -name '*.in' | grep -ve "contrib\|dist")
|
||||
AC_FILES = $(basename $(AC_FILES_IN))
|
||||
|
||||
all: config $(AC_FILES)
|
||||
if [ -z "$(CONFIG_ACDONE)" ]; then make $@; fi
|
||||
config: config.acdone $(AC_FILES)
|
||||
install: config $(AC_FILES)
|
||||
if [ -z "$(CONFIG_ACDONE)" ]; then make $@; fi
|
||||
distclean: confclean
|
||||
confclean:
|
||||
rm -f $(DISTCLEAN) $(CLEAN) $(AC_FILES)
|
||||
rm -rf $(DISTCLEAN) $(CLEAN) $(AC_FILES) autom4te.cache
|
||||
|
||||
configure.ac: configure.ac.tmpl VERSION
|
||||
cat $< | sed -e "s/_VERSION_/`cat VERSION | sed 's/-dev//'`/" > $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue