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