jw-pkg/make/autoconf.mk

37 lines
797 B
Makefile
Raw Normal View History

2002-07-19 19:41:05 +00:00
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
CLEAN += $(wildcard *.acdone)
2002-07-19 19:41:05 +00:00
DISTCLEAN += configure config.log autoscan.log configure.ac config.status
AC_FILES_IN = $(shell find . -name '*.in')
AC_FILES = $(basename $(AC_FILES_IN))
2002-07-19 19:41:05 +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
./configure --no-create $(CONFIGURE_OPTS)
2002-07-19 19:41:05 +00:00
config.acdone: config.status
./config.status
touch $@
%.mk: %.mk.in config.status
./config.status $@
touch $@
%.h: %.h.in config.status
./config.status $@
touch $@
config: config.acdone
all: config $(AC_FILES)
install: config $(AC_FILES)
configclean:
rm -f $(DISTCLEAN) $(CLEAN)