aboutsummaryrefslogtreecommitdiff
path: root/dist/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-21 12:38:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-21 12:38:19 +0200
commit04579ecc3a70ecf52418110cdaef92663be55dcb (patch)
tree89c35aee3dd55c664c020ae2cd1e7da0c7557401 /dist/examples
parent4b65a4d2d14b40a82335c372da91bdfc4ab5b11e (diff)
nmakefile build system improvements
Print the directory name being entered. Stop after first failure.
Diffstat (limited to 'dist/examples')
-rw-r--r--dist/examples/cxx/hybrid/binary/nmakefile10
-rw-r--r--dist/examples/cxx/hybrid/custom/nmakefile10
-rw-r--r--dist/examples/cxx/hybrid/nmakefile10
-rw-r--r--dist/examples/cxx/nmakefile10
-rw-r--r--dist/examples/cxx/parser/nmakefile10
-rw-r--r--dist/examples/cxx/serializer/nmakefile10
-rw-r--r--dist/examples/nmakefile10
7 files changed, 49 insertions, 21 deletions
diff --git a/dist/examples/cxx/hybrid/binary/nmakefile b/dist/examples/cxx/hybrid/binary/nmakefile
index 89db376..c154863 100644
--- a/dist/examples/cxx/hybrid/binary/nmakefile
+++ b/dist/examples/cxx/hybrid/binary/nmakefile
@@ -24,8 +24,12 @@ dirs = $(dirs) xdr
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/hybrid/custom/nmakefile b/dist/examples/cxx/hybrid/custom/nmakefile
index fc5d6fe..7d70e98 100644
--- a/dist/examples/cxx/hybrid/custom/nmakefile
+++ b/dist/examples/cxx/hybrid/custom/nmakefile
@@ -16,8 +16,12 @@ dirs = $(dirs) wildcard
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/hybrid/nmakefile b/dist/examples/cxx/hybrid/nmakefile
index d832f97..8bd74e6 100644
--- a/dist/examples/cxx/hybrid/nmakefile
+++ b/dist/examples/cxx/hybrid/nmakefile
@@ -28,8 +28,12 @@ dirs = $(dirs) minimal
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/nmakefile b/dist/examples/cxx/nmakefile
index 110ed18..1ae0efb 100644
--- a/dist/examples/cxx/nmakefile
+++ b/dist/examples/cxx/nmakefile
@@ -2,8 +2,12 @@ dirs = hybrid parser serializer
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/parser/nmakefile b/dist/examples/cxx/parser/nmakefile
index 1049fdb..8e88704 100644
--- a/dist/examples/cxx/parser/nmakefile
+++ b/dist/examples/cxx/parser/nmakefile
@@ -41,8 +41,12 @@ dirs = $(dirs) minimal
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/serializer/nmakefile b/dist/examples/cxx/serializer/nmakefile
index 23f9524..cd87db8 100644
--- a/dist/examples/cxx/serializer/nmakefile
+++ b/dist/examples/cxx/serializer/nmakefile
@@ -37,8 +37,12 @@ dirs = $(dirs) minimal
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/nmakefile b/dist/examples/nmakefile
index 2dea67e..b0cd59f 100644
--- a/dist/examples/nmakefile
+++ b/dist/examples/nmakefile
@@ -2,8 +2,12 @@ dirs = cxx
all:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile" || exit 1
-gen test clean cleanobj:
+gen test:
@for %i in ( $(dirs) ) do \
-@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@" || exit 1
+
+clean cleanobj:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "echo entering %i && cd %i && $(MAKE) /nologo /f nmakefile $@"