aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-20 18:58:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-20 18:58:18 +0200
commit8302018362ba1bc362a72ad3f6744ce6262b33af (patch)
treeda0bb3e011207d8db34516b07a3e4c11f5ec5272 /dist/examples/cxx/parser
parent1a574444dcad797bdc450f7e6a1347d0f2bbf758 (diff)
Add gen and cleanobj targets to makefiles in examples
Diffstat (limited to 'dist/examples/cxx/parser')
-rw-r--r--dist/examples/cxx/parser/generated/makefile14
-rw-r--r--dist/examples/cxx/parser/hello/makefile15
-rw-r--r--dist/examples/cxx/parser/library/makefile16
-rw-r--r--dist/examples/cxx/parser/minimal/makefile15
-rw-r--r--dist/examples/cxx/parser/mixed/makefile16
-rw-r--r--dist/examples/cxx/parser/multiroot/makefile15
-rw-r--r--dist/examples/cxx/parser/nmakefile2
-rw-r--r--dist/examples/cxx/parser/polymorphism/makefile15
-rw-r--r--dist/examples/cxx/parser/polyroot/makefile15
-rw-r--r--dist/examples/cxx/parser/wildcard/makefile15
10 files changed, 110 insertions, 28 deletions
diff --git a/dist/examples/cxx/parser/generated/makefile b/dist/examples/cxx/parser/generated/makefile
index 6e5e960..bf3b512 100644
--- a/dist/examples/cxx/parser/generated/makefile
+++ b/dist/examples/cxx/parser/generated/makefile
@@ -54,6 +54,12 @@ library-pskel.o: library-pskel.cxx library-pskel.hxx
$(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+# Generate.
+#
+.PHONY: gen
+gen: library-pdriver.cxx
+
+
# Test.
#
.PHONY: test
@@ -63,7 +69,9 @@ test: library-pdriver library.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f library-pdriver.?xx library-pimpl.?xx library-pskel.?xx
+.PHONY: clean cleanobj
+cleanobj:
rm -f library-pdriver.o library-pimpl.o library-pskel.o library-pdriver
+
+clean: cleanobj
+ rm -f library-pdriver.?xx library-pimpl.?xx library-pskel.?xx
diff --git a/dist/examples/cxx/parser/hello/makefile b/dist/examples/cxx/parser/hello/makefile
index d31ecff..421d69e 100644
--- a/dist/examples/cxx/parser/hello/makefile
+++ b/dist/examples/cxx/parser/hello/makefile
@@ -35,6 +35,13 @@ hello-pskel.o: hello-pskel.cxx hello-pskel.hxx
%-pskel.hxx %-pskel.cxx: %.xsd
$(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Generate.
+#
+.PHONY: gen
+gen: hello-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -44,7 +51,9 @@ test: driver hello.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f hello-pskel.?xx hello-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f hello-pskel.o driver.o driver
+clean: cleanobj
+ rm -f hello-pskel.?xx
diff --git a/dist/examples/cxx/parser/library/makefile b/dist/examples/cxx/parser/library/makefile
index a0ed792..0221150 100644
--- a/dist/examples/cxx/parser/library/makefile
+++ b/dist/examples/cxx/parser/library/makefile
@@ -41,6 +41,13 @@ library-pskel.o: library-pskel.cxx library-pskel.hxx library.hxx
--type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: library-pskel.hxx
+
+
+
# Test.
#
.PHONY: test
@@ -50,6 +57,9 @@ test: driver library.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f library-pskel.?xx $(impl).o library-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o library-pskel.o driver.o driver
+
+clean: cleanobj
+ rm -f library-pskel.?xx
diff --git a/dist/examples/cxx/parser/minimal/makefile b/dist/examples/cxx/parser/minimal/makefile
index bf1ac74..fb0d483 100644
--- a/dist/examples/cxx/parser/minimal/makefile
+++ b/dist/examples/cxx/parser/minimal/makefile
@@ -45,6 +45,13 @@ people-pskel.o: people-pskel.cxx people-pskel.hxx gender.hxx
$(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--type-map $*.map $<
+
+# Generate.
+#
+.PHONY: gen
+gen: people-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -54,7 +61,9 @@ test: driver people.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f people-pskel.?xx people-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f people-pskel.o driver.o driver
+clean: cleanobj
+ rm -f people-pskel.?xx
diff --git a/dist/examples/cxx/parser/mixed/makefile b/dist/examples/cxx/parser/mixed/makefile
index 412edfe..44d988e 100644
--- a/dist/examples/cxx/parser/mixed/makefile
+++ b/dist/examples/cxx/parser/mixed/makefile
@@ -29,6 +29,13 @@ text-pskel.o: text-pskel.cxx text-pskel.hxx anchor.hxx
$(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--type-map $*.map $<
+
+# Generate.
+#
+.PHONY: gen
+gen: text-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -37,7 +44,10 @@ test: driver text.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f text-pskel.?xx text-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f text-pskel.o driver.o driver
+
+clean: cleanobj
+ rm -f text-pskel.?xx
diff --git a/dist/examples/cxx/parser/multiroot/makefile b/dist/examples/cxx/parser/multiroot/makefile
index d4d6363..8fdaeec 100644
--- a/dist/examples/cxx/parser/multiroot/makefile
+++ b/dist/examples/cxx/parser/multiroot/makefile
@@ -42,6 +42,12 @@ protocol-pskel.o: protocol-pskel.cxx protocol-pskel.hxx protocol.hxx
--type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: protocol-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -50,9 +56,12 @@ test: driver balance.xml withdraw.xml deposit.xml
./driver withdraw.xml
./driver deposit.xml
+
# Clean.
#
-.PHONY: clean
-clean:
- rm -f protocol-pskel.?xx $(impl).o protocol-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o protocol-pskel.o driver.o driver
+clean: cleanobj
+ rm -f protocol-pskel.?xx
diff --git a/dist/examples/cxx/parser/nmakefile b/dist/examples/cxx/parser/nmakefile
index 9964a64..1049fdb 100644
--- a/dist/examples/cxx/parser/nmakefile
+++ b/dist/examples/cxx/parser/nmakefile
@@ -43,6 +43,6 @@ all:
@for %i in ( $(dirs) ) do \
@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
-test clean:
+gen test clean cleanobj:
@for %i in ( $(dirs) ) do \
@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/parser/polymorphism/makefile b/dist/examples/cxx/parser/polymorphism/makefile
index f0717a4..368401a 100644
--- a/dist/examples/cxx/parser/polymorphism/makefile
+++ b/dist/examples/cxx/parser/polymorphism/makefile
@@ -37,6 +37,12 @@ supermen-pskel.o: supermen-pskel.cxx supermen-pskel.hxx
--generate-polymorphic $<
+# Generate.
+#
+.PHONY: gen
+gen: supermen-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -46,6 +52,9 @@ test: driver supermen.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f supermen-pskel.?xx $(impl).o supermen-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o supermen-pskel.o driver.o driver
+
+clean: cleanobj
+ rm -f supermen-pskel.?xx
diff --git a/dist/examples/cxx/parser/polyroot/makefile b/dist/examples/cxx/parser/polyroot/makefile
index d89e527..69e7c10 100644
--- a/dist/examples/cxx/parser/polyroot/makefile
+++ b/dist/examples/cxx/parser/polyroot/makefile
@@ -37,6 +37,12 @@ supermen-pskel.o: supermen-pskel.cxx supermen-pskel.hxx
--generate-polymorphic $<
+# Generate.
+#
+.PHONY: gen
+gen: supermen-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -48,6 +54,9 @@ test: driver person.xml batman.xml superman.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f supermen-pskel.?xx $(impl).o supermen-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o supermen-pskel.o driver.o driver
+
+clean: cleanobj
+ rm -f supermen-pskel.?xx
diff --git a/dist/examples/cxx/parser/wildcard/makefile b/dist/examples/cxx/parser/wildcard/makefile
index 34830b9..7d117bc 100644
--- a/dist/examples/cxx/parser/wildcard/makefile
+++ b/dist/examples/cxx/parser/wildcard/makefile
@@ -27,6 +27,13 @@ email-pskel.o: email-pskel.cxx email-pskel.hxx
%-pskel.hxx %-pskel.cxx: %.xsd
$(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Generate.
+#
+.PHONY: gen
+gen: email-pskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -36,7 +43,9 @@ test: driver email.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f email-pskel.?xx email-pskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f email-pskel.o driver.o driver
+clean: cleanobj
+ rm -f email-pskel.?xx