autoconf.mk, projdefs.mk: Add files

This commit is contained in:
Jan Lindemann 2002-07-19 19:41:05 +00:00 committed by Jan Lindemann
commit e4b7aee901
2 changed files with 33 additions and 0 deletions

19
make/autoconf.mk Normal file
View file

@ -0,0 +1,19 @@
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
CLEAN += config.status
DISTCLEAN += configure config.log autoscan.log configure.ac config.status
configure.ac: configure.ac.tmpl $(TOPDIR)/VERSION
cat $< | sed -e "s/_VERSION_/`cat $(TOPDIR)/VERSION | sed 's/-dev//'`/" > $@
configure: configure.ac
autoconf $< > $@
chmod 755 $@
config.status: configure
./configure $(CONFIGURE_OPTS)
config: config.status

14
make/projdefs.mk Normal file
View file

@ -0,0 +1,14 @@
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
CAP_PROJECT := $(shell echo $(PROJECT) | tr [a-z] [A-Z])
include $(MODDIR)/make/defs.mk
$(CAP_PROJECT)_VERSION := $(VERSION)
$(CAP_PROJECT)_INSTALL_LIBDIR := $(INSTALL_LIBDIR)
$(CAP_PROJECT)_TOPDIR := $(TOPDIR)