1# Makefile to generate build tools 2# 3# Standard usage: 4# make -f build.mk 5# 6# Written by Sascha Schumann 7 8 9LT_TARGETS = ltmain.sh ltconfig 10 11config_h_in = zend_config.h.in 12 13makefile_am_files = Makefile.am 14makefile_in_files = $(makefile_am_files:.am=.in) 15makefile_files = $(makefile_am_files:e.am=e) 16 17targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in) 18 19all: $(targets) 20 21clean: 22 rm -f $(targets) 23 24$(LT_TARGETS): 25 rm -f $(LT_TARGETS) 26 libtoolize --automake $(AMFLAGS) -f 27 28$(makefile_in_files): $(makefile_am_files) 29 automake -a -i $(AMFLAGS) $(makefile_files) 30 31aclocal.m4: configure.ac acinclude.m4 32 aclocal 33 34$(config_h_in): configure.ac 35# explicitly remove target since autoheader does not seem to work 36# correctly otherwise (timestamps are not updated) 37 @rm -f $@ 38 autoheader 39 40configure: aclocal.m4 configure.ac 41 autoconf 42