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