1999-10-10 09:23:15 +08:00
|
|
|
# Makefile to generate build tools
|
|
|
|
#
|
|
|
|
# Standard usage:
|
|
|
|
# make -f build.mk
|
|
|
|
#
|
|
|
|
# Written by Sascha Schumann
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
|
|
|
|
LT_TARGETS = ltmain.sh ltconfig
|
|
|
|
|
|
|
|
config_h_in = zend_config.h.in
|
|
|
|
|
|
|
|
makefile_am_files = Makefile.am
|
|
|
|
makefile_in_files = $(makefile_am_files:.am=.in)
|
|
|
|
makefile_files = $(makefile_am_files:e.am=e)
|
|
|
|
|
1999-10-10 10:02:13 +08:00
|
|
|
targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in)
|
|
|
|
|
|
|
|
all: $(targets)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(targets)
|
1999-10-10 09:23:15 +08:00
|
|
|
|
|
|
|
$(LT_TARGETS):
|
|
|
|
rm -f $(LT_TARGETS)
|
|
|
|
libtoolize --automake $(AMFLAGS) -f
|
|
|
|
|
|
|
|
$(makefile_in_files): $(makefile_am_files)
|
|
|
|
automake -a -i $(AMFLAGS) $(makefile_files)
|
|
|
|
|
2015-11-12 04:08:15 +08:00
|
|
|
aclocal.m4: configure.ac acinclude.m4
|
1999-10-10 09:23:15 +08:00
|
|
|
aclocal
|
|
|
|
|
2015-11-12 04:08:15 +08:00
|
|
|
$(config_h_in): configure.ac
|
1999-10-10 09:23:15 +08:00
|
|
|
# explicitly remove target since autoheader does not seem to work
|
|
|
|
# correctly otherwise (timestamps are not updated)
|
|
|
|
@rm -f $@
|
|
|
|
autoheader
|
|
|
|
|
2015-11-12 04:08:15 +08:00
|
|
|
configure: aclocal.m4 configure.ac
|
1999-10-10 09:23:15 +08:00
|
|
|
autoconf
|