Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

build.mk can be used to generate build tools. It is usually

faster than buildconf, since it rebuilds only components, if
it is necessary. To use it, run

    $ make -f build.mk
  • Loading branch information...
commit f2608c3fdb0e417506b04c14e53b5b89c3b9070e 1 parent f331865
Sascha Schumann authored
Showing with 76 additions and 0 deletions.
  1. +38 −0 TSRM/build.mk
  2. +38 −0 Zend/build.mk
View
38 TSRM/build.mk
@@ -0,0 +1,38 @@
+# Makefile to generate build tools
+#
+# Standard usage:
+# make -f build.mk
+#
+# Written by Sascha Schumann
+#
+# $Id$
+
+
+LT_TARGETS = ltmain.sh ltconfig
+
+config_h_in = tsrm_config.h.in
+
+makefile_am_files = Makefile.am
+makefile_in_files = $(makefile_am_files:.am=.in)
+makefile_files = $(makefile_am_files:e.am=e)
+
+all: $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in)
+
+$(LT_TARGETS):
+ rm -f $(LT_TARGETS)
+ libtoolize --automake $(AMFLAGS) -f
+
+$(makefile_in_files): $(makefile_am_files)
+ automake -a -i $(AMFLAGS) $(makefile_files)
+
+aclocal.m4: configure.in acinclude.m4
+ aclocal
+
+$(config_h_in): configure.in acconfig.h
+# explicitly remove target since autoheader does not seem to work
+# correctly otherwise (timestamps are not updated)
+ @rm -f $@
+ autoheader
+
+configure: aclocal.m4 configure.in
+ autoconf
View
38 Zend/build.mk
@@ -0,0 +1,38 @@
+# 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)
+
+all: $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in)
+
+$(LT_TARGETS):
+ rm -f $(LT_TARGETS)
+ libtoolize --automake $(AMFLAGS) -f
+
+$(makefile_in_files): $(makefile_am_files)
+ automake -a -i $(AMFLAGS) $(makefile_files)
+
+aclocal.m4: configure.in acinclude.m4
+ aclocal
+
+$(config_h_in): configure.in acconfig.h
+# explicitly remove target since autoheader does not seem to work
+# correctly otherwise (timestamps are not updated)
+ @rm -f $@
+ autoheader
+
+configure: aclocal.m4 configure.in
+ autoconf
Please sign in to comment.
Something went wrong with that request. Please try again.