Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-25 01:56:54 +0400
committerChristopher Faylor <me@cgf.cx>2001-10-25 01:56:54 +0400
commita9f20457f32877bf13e7a52366aa0996f9d8b2a9 (patch)
tree28154ea227295ef03dfcfed4a983a0632cb0cc67 /winsup/Makefile.in
parent1dd695651f77dafbe2e71f008fc43924a50ad534 (diff)
* Makefile.in: Only build testsuite directory on first 'make check'.
* configure.in: Remove testsuite from SUBDIRS. * configure: Regenerate.
Diffstat (limited to 'winsup/Makefile.in')
-rw-r--r--winsup/Makefile.in28
1 files changed, 22 insertions, 6 deletions
diff --git a/winsup/Makefile.in b/winsup/Makefile.in
index 2bc1c419c..c1e686fd3 100644
--- a/winsup/Makefile.in
+++ b/winsup/Makefile.in
@@ -36,7 +36,7 @@ datadir:=@datadir@
infodir:=@infodir@
includedir:=@includedir@
-SUBDIRS=@SUBDIRS@
+SUBDIRS=@SUBDIRS@ testsuite
INSTALL_SUBDIRS=${patsubst %,install_%,$(SUBDIRS)}
CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
@@ -66,13 +66,19 @@ install-info:
info:
$(SUBDIRS):
- @$(MAKE) -C $@ all
+ @if cd $@ 2>/dev/null; then \
+ $(MAKE) all; \
+ fi || exit 0
$(INSTALL_SUBDIRS):
- @$(MAKE) -C ${patsubst install_%,%,$@} install
+ @if cd ${patsubst install_%,%,$@} 2>/dev/null; then \
+ make install; \
+ fi || exit 0
$(CLEAN_SUBDIRS):
- @$(MAKE) -C ${patsubst clean_%,%,$@} clean
+ @if cd ${patsubst clean_%,%,$@} 2>/dev/null; then \
+ make install; \
+ fi || exit 0
.PRECIOUS: Makefile
@@ -82,5 +88,15 @@ Makefile: Makefile.in $(srcdir)/configure.in config.status
config.status: configure
$(SHELL) config.status --recheck
-check:
- @$(MAKE) -C testsuite check
+check: cygwin
+ @if [ -d testsuite ]; then \
+ cd testsuite; \
+ else \
+ mkdir testsuite; \
+ cd testsuite; \
+ sed -n -e '1,/^done/{' -e 's%/cygwin%/testsuite%g; ' -e 'p; }' ../cygwin/config.status > config.status; \
+ chmod a+x config.status; \
+ sh ./config.status --recheck; \
+ sh ./config.status; \
+ fi; \
+ $(MAKE) check