cvs: /php4 build.mk

From: Date: Sun, 10 Oct 1999 01:05:10 +0000
Subject: cvs: /php4 build.mk
Groups: php.version4 
Request: Send a blank email to php-version4+get-5433@lists.php.net to get a copy of this message
sas Sat Oct 9 21:05:10 1999 EDT Modified files: /php4 build.mk Log: Clean up and add 'clean' target which removes standard targets recursively Index: php4/build.mk diff -u php4/build.mk:1.1 php4/build.mk:1.2 --- php4/build.mk:1.1 Sat Oct 9 20:22:05 1999 +++ php4/build.mk Sat Oct 9 21:04:39 1999 @@ -9,7 +9,7 @@ # # Written by Sascha Schumann # -# $Id: build.mk,v 1.1 1999/10/10 00:22:05 sas Exp $ +# $Id: build.mk,v 1.2 1999/10/10 01:04:39 sas Exp $ LT_TARGETS = ltmain.sh ltconfig @@ -20,30 +20,38 @@ makefile_am_files = $(shell find . -name Makefile.am) makefile_in_files = $(makefile_am_files:.am=.in) makefile_files = $(makefile_am_files:e.am=e) + +config_h_in = php_config.h.in config_h_files = \ - $(shell echo ext/*/config.h.stub) \ - $(shell echo sapi/*/config.h.stub) - + $(shell echo ext/*/config.h.stub sapi/*/config.h.stub) + config_m4_files = \ - $(shell echo ext/*/config.m4) \ - $(shell echo sapi/*/config.m4) + $(shell echo ext/*/config.m4 sapi/*/config.m4) acconfig_h_SOURCES = acconfig.h.in $(config_h_files) -all: $(makefile_in_files) $(LT_TARGETS) configure php_config.h.in +targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in) + +all: $(targets) @for i in $(SUBDIRS); do \ test -d $$i || (test -d ../$$i && ln -s ../$$i $$i); \ (cd $$i && $(MAKE) -f build.mk AMFLAGS=$(AMFLAGS)); \ done dist: - find -type l -exec rm {} \; - for i in $(SUBDIRS); do \ + @rm -f $(SUBDIRS) 2>/dev/null || true + @for i in $(SUBDIRS); do \ test -d $$i || (test -d ../$$i && cp -rp ../$$i $$i); \ done - $(MAKE) AMFLAGS=--copy -f build.mk all + @find . -type l -exec rm {} \; + $(MAKE) AMFLAGS=--copy -f build.mk +clean: + rm -f $(targets) + @for i in $(SUBDIRS); do \ + (cd $$i && $(MAKE) -f build.mk clean); \ + done acconfig.h: $(acconfig_h_SOURCES) @echo rebuilding $@ @@ -63,7 +71,7 @@ aclocal.m4: configure.in acinclude.m4 aclocal -php_config.h.in: configure.in acconfig.h +$(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 $@

« previous php.version4 (#5433) next »