From 73dc76b0bf87336d5e0a5d8f8c820a0c5e4de364 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 29 Aug 2017 11:33:34 -0700 Subject: Separation of module prerequisites for 'all' target in Makefile. To avoid using sed -i. --- auto/modules/php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auto/modules/php') diff --git a/auto/modules/php b/auto/modules/php index cf4f3837..bb9fa848 100644 --- a/auto/modules/php +++ b/auto/modules/php @@ -150,6 +150,8 @@ cat << END >> $NXT_MAKEFILE .PHONY: ${NXT_PHP_MODULE} +all: ${NXT_PHP_MODULE} + ${NXT_PHP_MODULE}: $NXT_BUILD_DIR/nginext.${NXT_PHP_MODULE} $NXT_BUILD_DIR/nginext.${NXT_PHP_MODULE}: $nxt_objs @@ -157,5 +159,3 @@ $NXT_BUILD_DIR/nginext.${NXT_PHP_MODULE}: $nxt_objs $nxt_objs ${NXT_PHP_LIB} ${NXT_PHP_LDFLAGS} END - -sed -i.bak -e "s/\(all:.*\)/\1 ${NXT_PHP_MODULE}/" $NXT_MAKEFILE -- cgit