2002-07-19 19:41:05 +00:00
|
|
|
# generic utility modules
|
|
|
|
|
# (c) 2001 jannet it services
|
|
|
|
|
# contact@jannet.de
|
|
|
|
|
# $Id$
|
|
|
|
|
|
2003-12-21 11:11:13 +00:00
|
|
|
CONFIG_ACDONE := $(wildcard config.acdone)
|
2004-06-03 21:37:18 +00:00
|
|
|
CLEAN = $(wildcard *.acdone)
|
2002-07-19 19:41:05 +00:00
|
|
|
DISTCLEAN += configure config.log autoscan.log configure.ac config.status
|
2004-06-03 21:37:18 +00:00
|
|
|
AC_FILES_IN = $(shell find . -name '*.in' -maxdepth 2 | grep -ve "contrib\|dist\|nomake")
|
2002-07-19 20:26:24 +00:00
|
|
|
AC_FILES = $(basename $(AC_FILES_IN))
|
2002-07-19 19:41:05 +00:00
|
|
|
|
2002-07-20 10:26:53 +00:00
|
|
|
all: config $(AC_FILES)
|
2003-12-21 11:11:13 +00:00
|
|
|
if [ -z "$(CONFIG_ACDONE)" ]; then make $@; fi
|
2002-07-25 10:39:55 +00:00
|
|
|
config: config.acdone $(AC_FILES)
|
2002-07-20 10:26:53 +00:00
|
|
|
install: config $(AC_FILES)
|
2003-12-21 11:11:13 +00:00
|
|
|
if [ -z "$(CONFIG_ACDONE)" ]; then make $@; fi
|
|
|
|
|
distclean: confclean
|
2002-07-20 10:26:53 +00:00
|
|
|
confclean:
|
2003-12-21 11:11:13 +00:00
|
|
|
rm -rf $(DISTCLEAN) $(CLEAN) $(AC_FILES) autom4te.cache
|
|
|
|
|
|
2002-07-19 20:26:24 +00:00
|
|
|
configure.ac: configure.ac.tmpl VERSION
|
|
|
|
|
cat $< | sed -e "s/_VERSION_/`cat VERSION | sed 's/-dev//'`/" > $@
|
2002-07-19 19:41:05 +00:00
|
|
|
|
|
|
|
|
configure: configure.ac
|
|
|
|
|
autoconf $< > $@
|
|
|
|
|
chmod 755 $@
|
|
|
|
|
|
|
|
|
|
config.status: configure
|
2002-07-19 20:26:24 +00:00
|
|
|
./configure --no-create $(CONFIGURE_OPTS)
|
2002-07-19 19:41:05 +00:00
|
|
|
|
2002-07-19 20:26:24 +00:00
|
|
|
config.acdone: config.status
|
|
|
|
|
./config.status
|
|
|
|
|
touch $@
|
|
|
|
|
|
2002-07-20 10:26:53 +00:00
|
|
|
$(TOPDIR)/make/%.mk: $(TOPDIR)/make/%.mk.in config.status
|
2002-07-19 20:26:24 +00:00
|
|
|
./config.status $@
|
|
|
|
|
touch $@
|
|
|
|
|
|
2002-07-25 10:39:55 +00:00
|
|
|
$(TOPDIR)/include/%.h: $(TOPDIR)/include/%.h.in config.status
|
2002-07-19 20:26:24 +00:00
|
|
|
./config.status $@
|
|
|
|
|
touch $@
|