aboutsummaryrefslogtreecommitdiff
path: root/dist/examples
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
parent1a574444dcad797bdc450f7e6a1347d0f2bbf758 (diff)
Add gen and cleanobj targets to makefiles in examples
Diffstat (limited to 'dist/examples')
-rw-r--r--dist/examples/cxx/hybrid/binary/cdr/makefile18
-rw-r--r--dist/examples/cxx/hybrid/binary/custom/makefile18
-rw-r--r--dist/examples/cxx/hybrid/binary/nmakefile2
-rw-r--r--dist/examples/cxx/hybrid/binary/xdr/makefile18
-rw-r--r--dist/examples/cxx/hybrid/compositors/makefile16
-rw-r--r--dist/examples/cxx/hybrid/custom/nmakefile2
-rw-r--r--dist/examples/cxx/hybrid/custom/wildcard/makefile21
-rw-r--r--dist/examples/cxx/hybrid/filter/makefile19
-rw-r--r--dist/examples/cxx/hybrid/hello/makefile17
-rw-r--r--dist/examples/cxx/hybrid/library/makefile18
-rw-r--r--dist/examples/cxx/hybrid/minimal/makefile18
-rw-r--r--dist/examples/cxx/hybrid/multiroot/makefile17
-rw-r--r--dist/examples/cxx/hybrid/nmakefile2
-rw-r--r--dist/examples/cxx/hybrid/polymorphism/makefile18
-rw-r--r--dist/examples/cxx/hybrid/polyroot/makefile18
-rw-r--r--dist/examples/cxx/hybrid/streaming/makefile20
-rw-r--r--dist/examples/cxx/hybrid/wildcard/makefile21
-rw-r--r--dist/examples/cxx/nmakefile2
-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
-rw-r--r--dist/examples/cxx/serializer/hello/makefile15
-rw-r--r--dist/examples/cxx/serializer/library/makefile14
-rw-r--r--dist/examples/cxx/serializer/minimal/makefile15
-rw-r--r--dist/examples/cxx/serializer/nmakefile2
-rw-r--r--dist/examples/cxx/serializer/polymorphism/makefile14
-rw-r--r--dist/examples/cxx/serializer/polyroot/makefile14
-rw-r--r--dist/examples/cxx/serializer/wildcard/makefile15
-rw-r--r--dist/examples/nmakefile2
36 files changed, 381 insertions, 113 deletions
diff --git a/dist/examples/cxx/hybrid/binary/cdr/makefile b/dist/examples/cxx/hybrid/binary/cdr/makefile
index 6814623..0f2e44d 100644
--- a/dist/examples/cxx/hybrid/binary/cdr/makefile
+++ b/dist/examples/cxx/hybrid/binary/cdr/makefile
@@ -47,6 +47,13 @@ library-simpl.o: library-simpl.cxx
--generate-parser --generate-serializer --generate-aggregate \
--generate-insertion CDR --generate-extraction CDR $<
+
+# Generate.
+#
+.PHONY: gen
+gen: library.hxx
+
+
# Test.
#
.PHONY: test
@@ -55,8 +62,11 @@ test: driver library.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f library-pimpl.o library-pskel.o library-simpl.o library-sskel.o \
+library.o driver.o driver
+
+clean: cleanobj
rm -f library-pimpl.?xx library-pskel.?xx library-simpl.?xx \
-library-sskel.?xx library.?xx library-pimpl.o library-pskel.o \
-library-simpl.o library-sskel.o library.o driver.o driver
+library-sskel.?xx library.?xx
diff --git a/dist/examples/cxx/hybrid/binary/custom/makefile b/dist/examples/cxx/hybrid/binary/custom/makefile
index 39ba93c..63a48bf 100644
--- a/dist/examples/cxx/hybrid/binary/custom/makefile
+++ b/dist/examples/cxx/hybrid/binary/custom/makefile
@@ -58,6 +58,13 @@ xml-schema%hxx xml-schema-pskel%hxx xml-schema-sskel%hxx:
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--options-file options $<
+
+# Generate.
+#
+.PHONY: gen
+gen: xml-schema.hxx library.hxx
+
+
# Test.
#
.PHONY: test
@@ -66,9 +73,12 @@ test: driver library.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f library-pimpl.o library-pskel.o library-simpl.o library-sskel.o \
+library.o irawstream.o orawstream.o exceptions.o driver.o driver
+
+clean: cleanobj
rm -f xml-schema.hxx xml-schema-pskel.hxx xml-schema-sskel.hxx \
library-pimpl.?xx library-pskel.?xx library-simpl.?xx library-sskel.?xx \
-library.?xx library-pimpl.o library-pskel.o library-simpl.o library-sskel.o \
-library.o irawstream.o orawstream.o exceptions.o driver.o driver
+library.?xx
diff --git a/dist/examples/cxx/hybrid/binary/nmakefile b/dist/examples/cxx/hybrid/binary/nmakefile
index da24750..89db376 100644
--- a/dist/examples/cxx/hybrid/binary/nmakefile
+++ b/dist/examples/cxx/hybrid/binary/nmakefile
@@ -26,6 +26,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/hybrid/binary/xdr/makefile b/dist/examples/cxx/hybrid/binary/xdr/makefile
index 9967e70..2d926ea 100644
--- a/dist/examples/cxx/hybrid/binary/xdr/makefile
+++ b/dist/examples/cxx/hybrid/binary/xdr/makefile
@@ -45,6 +45,13 @@ library-simpl.o: library-simpl.cxx
--generate-parser --generate-serializer --generate-aggregate \
--generate-insertion XDR --generate-extraction XDR $<
+
+# Generate.
+#
+.PHONY: gen
+gen: library.hxx
+
+
# Test.
#
.PHONY: test
@@ -53,8 +60,11 @@ test: driver library.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f library-pimpl.o library-pskel.o library-simpl.o library-sskel.o \
+library.o driver.o driver
+
+clean: cleanobj
rm -f library-pimpl.?xx library-pskel.?xx library-simpl.?xx \
-library-sskel.?xx library.?xx library-pimpl.o library-pskel.o \
-library-simpl.o library-sskel.o library.o driver.o driver
+library-sskel.?xx library.?xx
diff --git a/dist/examples/cxx/hybrid/compositors/makefile b/dist/examples/cxx/hybrid/compositors/makefile
index d030bf4..5bdd1d3 100644
--- a/dist/examples/cxx/hybrid/compositors/makefile
+++ b/dist/examples/cxx/hybrid/compositors/makefile
@@ -44,6 +44,13 @@ compositors.o: compositors.cxx compositors.hxx
%.hxx %.cxx: %.xsd
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Generate.
+#
+.PHONY: gen
+gen: compositors.hxx
+
+
# Test.
#
.PHONY: test
@@ -52,6 +59,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f compositors.?xx compositors.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f compositors.o driver.o driver
+
+clean: cleanobj
+ rm -f compositors.?xx
diff --git a/dist/examples/cxx/hybrid/custom/nmakefile b/dist/examples/cxx/hybrid/custom/nmakefile
index e662085..fc5d6fe 100644
--- a/dist/examples/cxx/hybrid/custom/nmakefile
+++ b/dist/examples/cxx/hybrid/custom/nmakefile
@@ -18,6 +18,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/hybrid/custom/wildcard/makefile b/dist/examples/cxx/hybrid/custom/wildcard/makefile
index 71283bb..43b38df 100644
--- a/dist/examples/cxx/hybrid/custom/wildcard/makefile
+++ b/dist/examples/cxx/hybrid/custom/wildcard/makefile
@@ -44,6 +44,13 @@ envelope-simpl.o: envelope-simpl.cxx envelope-simpl.hxx email.hxx body.hxx
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--options-file options $<
+
+# Generate.
+#
+.PHONY: gen
+gen: email.hxx
+
+
# Test.
#
.PHONY: test
@@ -52,9 +59,11 @@ test: driver email.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f email-pimpl.?xx email-pskel.?xx email-simpl.?xx \
-email-sskel.?xx email.?xx envelope-pimpl.o envelope-simpl.o \
-email-pimpl.o email-pskel.o email-simpl.o email-sskel.o \
-body.o email.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f envelope-pimpl.o envelope-simpl.o email-pimpl.o email-pskel.o \
+email-simpl.o email-sskel.o body.o email.o driver.o driver
+
+clean: cleanobj
+ rm -f email-pimpl.?xx email-pskel.?xx email-simpl.?xx email-sskel.?xx \
+email.?xx
diff --git a/dist/examples/cxx/hybrid/filter/makefile b/dist/examples/cxx/hybrid/filter/makefile
index f9137fc..b89536e 100644
--- a/dist/examples/cxx/hybrid/filter/makefile
+++ b/dist/examples/cxx/hybrid/filter/makefile
@@ -45,6 +45,13 @@ people-custom-simpl.o: people-custom-simpl.cxx people-custom-simpl.hxx people.hx
--custom-parser people=people_base_pimpl/people-custom-pimpl.hxx \
--custom-serializer people=people_base_simpl/people-custom-simpl.hxx $<
+
+# Generate.
+#
+.PHONY: gen
+gen: people.hxx
+
+
# Test.
#
.PHONY: test
@@ -53,9 +60,11 @@ test: driver people.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f people-custom-pimpl.o people-custom-simpl.o people-pimpl.o \
+people-pskel.o people-simpl.o people-sskel.o people.o driver.o driver
+
+clean: cleanobj
rm -f people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
-people-sskel.?xx people.?xx people-custom-pimpl.o people-custom-simpl.o \
-people-pimpl.o people-pskel.o people-simpl.o people-sskel.o \
-people.o driver.o driver
+people-sskel.?xx people.?xx
diff --git a/dist/examples/cxx/hybrid/hello/makefile b/dist/examples/cxx/hybrid/hello/makefile
index 3a6f645..789334f 100644
--- a/dist/examples/cxx/hybrid/hello/makefile
+++ b/dist/examples/cxx/hybrid/hello/makefile
@@ -39,6 +39,13 @@ hello-pimpl.o: hello-pimpl.cxx
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--generate-parser --generate-aggregate $<
+
+# Generate.
+#
+.PHONY: gen
+gen: hello.hxx
+
+
# Test.
#
.PHONY: test
@@ -47,7 +54,9 @@ test: driver hello.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f hello-pimpl.?xx hello-pskel.?xx hello.?xx hello-pimpl.o \
-hello-pskel.o hello.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f hello-pimpl.o hello-pskel.o hello.o driver.o driver
+
+clean: cleanobj
+ rm -f hello-pimpl.?xx hello-pskel.?xx hello.?xx
diff --git a/dist/examples/cxx/hybrid/library/makefile b/dist/examples/cxx/hybrid/library/makefile
index 2b1e09e..58c99a7 100644
--- a/dist/examples/cxx/hybrid/library/makefile
+++ b/dist/examples/cxx/hybrid/library/makefile
@@ -41,6 +41,13 @@ library-simpl.o: library-simpl.cxx
--generate-parser --generate-serializer --generate-aggregate \
--omit-default-attributes $<
+
+# Generate.
+#
+.PHONY: gen
+gen: library.hxx
+
+
# Test.
#
.PHONY: test
@@ -49,8 +56,11 @@ test: driver library.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f library-pimpl.o library-pskel.o library-simpl.o \
+library-sskel.o library.o driver.o driver
+
+clean: cleanobj
rm -f library-pimpl.?xx library-pskel.?xx library-simpl.?xx \
-library-sskel.?xx library.?xx library-pimpl.o library-pskel.o \
-library-simpl.o library-sskel.o library.o driver.o driver
+library-sskel.?xx library.?xx
diff --git a/dist/examples/cxx/hybrid/minimal/makefile b/dist/examples/cxx/hybrid/minimal/makefile
index 14b7008..e7f896e 100644
--- a/dist/examples/cxx/hybrid/minimal/makefile
+++ b/dist/examples/cxx/hybrid/minimal/makefile
@@ -46,6 +46,13 @@ people-simpl.o: people-simpl.cxx
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--generate-parser --generate-serializer --generate-aggregate $<
+
+# Generate.
+#
+.PHONY: gen
+gen: people.hxx
+
+
# Test.
#
.PHONY: test
@@ -54,8 +61,11 @@ test: driver people.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f people-pimpl.o people-pskel.o people-simpl.o people-sskel.o \
+people.o driver.o driver
+
+clean: cleanobj
rm -f people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
-people-sskel.?xx people.?xx people-pimpl.o people-pskel.o \
-people-simpl.o people-sskel.o people.o driver.o driver
+people-sskel.?xx people.?xx
diff --git a/dist/examples/cxx/hybrid/multiroot/makefile b/dist/examples/cxx/hybrid/multiroot/makefile
index d427726..cb3f3d0 100644
--- a/dist/examples/cxx/hybrid/multiroot/makefile
+++ b/dist/examples/cxx/hybrid/multiroot/makefile
@@ -39,6 +39,13 @@ protocol-pimpl.o: protocol-pimpl.cxx
$(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--generate-parser --generate-aggregate --root-element-all $<
+
+# Generate.
+#
+.PHONY: gen
+gen: protocol.hxx
+
+
# Test.
#
.PHONY: test
@@ -49,7 +56,9 @@ test: driver balance.xml withdraw.xml deposit.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx \
-protocol-pimpl.o protocol-pskel.o protocol.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f protocol-pimpl.o protocol-pskel.o protocol.o driver.o driver
+
+clean: cleanobj
+ rm -f protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx
diff --git a/dist/examples/cxx/hybrid/nmakefile b/dist/examples/cxx/hybrid/nmakefile
index 70d4dfe..d832f97 100644
--- a/dist/examples/cxx/hybrid/nmakefile
+++ b/dist/examples/cxx/hybrid/nmakefile
@@ -30,6 +30,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/hybrid/polymorphism/makefile b/dist/examples/cxx/hybrid/polymorphism/makefile
index 353e692..47ad26d 100644
--- a/dist/examples/cxx/hybrid/polymorphism/makefile
+++ b/dist/examples/cxx/hybrid/polymorphism/makefile
@@ -41,6 +41,13 @@ supermen-simpl.o: supermen-simpl.cxx
--generate-parser --generate-serializer --generate-aggregate \
--generate-polymorphic --generate-typeinfo --root-element supermen $<
+
+# Generate.
+#
+.PHONY: gen
+gen: supermen.hxx
+
+
# Test.
#
.PHONY: test
@@ -49,8 +56,11 @@ test: driver supermen.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f supermen-pimpl.o supermen-pskel.o supermen-simpl.o \
+supermen-sskel.o supermen.o driver.o driver
+
+clean: cleanobj
rm -f supermen-pimpl.?xx supermen-pskel.?xx supermen-simpl.?xx \
-supermen-sskel.?xx supermen.?xx supermen-pimpl.o supermen-pskel.o \
-supermen-simpl.o supermen-sskel.o supermen.o driver.o driver
+supermen-sskel.?xx supermen.?xx
diff --git a/dist/examples/cxx/hybrid/polyroot/makefile b/dist/examples/cxx/hybrid/polyroot/makefile
index d38f04c..5e7d513 100644
--- a/dist/examples/cxx/hybrid/polyroot/makefile
+++ b/dist/examples/cxx/hybrid/polyroot/makefile
@@ -41,6 +41,13 @@ supermen-simpl.o: supermen-simpl.cxx
--generate-parser --generate-serializer --generate-aggregate \
--generate-polymorphic --generate-typeinfo --root-element person $<
+
+# Generate.
+#
+.PHONY: gen
+gen: supermen.hxx
+
+
# Test.
#
.PHONY: test
@@ -51,8 +58,11 @@ test: driver person.xml batman.xml superman.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f supermen-pimpl.o supermen-pskel.o supermen-simpl.o \
+supermen-sskel.o supermen.o driver.o driver
+
+clean: cleanobj
rm -f supermen-pimpl.?xx supermen-pskel.?xx supermen-simpl.?xx \
-supermen-sskel.?xx supermen.?xx supermen-pimpl.o supermen-pskel.o \
-supermen-simpl.o supermen-sskel.o supermen.o driver.o driver
+supermen-sskel.?xx supermen.?xx
diff --git a/dist/examples/cxx/hybrid/streaming/makefile b/dist/examples/cxx/hybrid/streaming/makefile
index 7a7a440..a607ff1 100644
--- a/dist/examples/cxx/hybrid/streaming/makefile
+++ b/dist/examples/cxx/hybrid/streaming/makefile
@@ -49,6 +49,13 @@ object-simpl.o: object-simpl.cxx object-simpl.hxx position.hxx
--custom-parser object=/object-pimpl.hxx \
--custom-serializer object=/object-simpl.hxx $<
+
+# Generate.
+#
+.PHONY: gen
+gen: position.hxx
+
+
# Test.
#
.PHONY: test
@@ -57,9 +64,12 @@ test: driver position.xml
# Clean.
#
-.PHONY: clean
-clean:
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f object-pimpl.o object-simpl.o position-pimpl.o position-pskel.o \
+position-simpl.o position-sskel.o position.o driver.o driver
+
+clean: cleanobj
rm -f position-pimpl.?xx position-pskel.?xx position-simpl.?xx \
-position-sskel.?xx position.?xx object-pimpl.o object-simpl.o \
-position-pimpl.o position-pskel.o position-simpl.o position-sskel.o \
-position.o driver.o driver
+position-sskel.?xx position.?xx
+
diff --git a/dist/examples/cxx/hybrid/wildcard/makefile b/dist/examples/cxx/hybrid/wildcard/makefile
index 876003f..dda8cfc 100644
--- a/dist/examples/cxx/hybrid/wildcard/makefile
+++ b/dist/examples/cxx/hybrid/wildcard/makefile
@@ -47,6 +47,13 @@ envelope-simpl.o: envelope-simpl.cxx envelope-simpl.hxx email.hxx body.hxx
--custom-parser envelope=envelope_base_pimpl/envelope-pimpl.hxx \
--custom-serializer envelope=envelope_base_simpl/envelope-simpl.hxx $<
+
+# Generate.
+#
+.PHONY: gen
+gen: email.hxx
+
+
# Test.
#
.PHONY: test
@@ -55,9 +62,11 @@ test: driver email.xml
# Clean.
#
-.PHONY: clean
-clean:
- rm -f email-pimpl.?xx email-pskel.?xx email-simpl.?xx \
-email-sskel.?xx email.?xx envelope-pimpl.o envelope-simpl.o \
-email-pimpl.o email-pskel.o email-simpl.o email-sskel.o \
-body.o email.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f envelope-pimpl.o envelope-simpl.o email-pimpl.o email-pskel.o \
+email-simpl.o email-sskel.o body.o email.o driver.o driver
+
+clean: cleanobj
+ rm -f email-pimpl.?xx email-pskel.?xx email-simpl.?xx email-sskel.?xx \
+email.?xx
diff --git a/dist/examples/cxx/nmakefile b/dist/examples/cxx/nmakefile
index a137db9..110ed18 100644
--- a/dist/examples/cxx/nmakefile
+++ b/dist/examples/cxx/nmakefile
@@ -4,6 +4,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/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
diff --git a/dist/examples/cxx/serializer/hello/makefile b/dist/examples/cxx/serializer/hello/makefile
index fb26bde..a498aa4 100644
--- a/dist/examples/cxx/serializer/hello/makefile
+++ b/dist/examples/cxx/serializer/hello/makefile
@@ -35,6 +35,13 @@ hello-sskel.o: hello-sskel.cxx hello-sskel.hxx
%-sskel.hxx %-sskel.cxx: %.xsd
$(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Generate.
+#
+.PHONY: gen
+gen: hello-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -44,7 +51,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f hello-sskel.?xx hello-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f hello-sskel.o driver.o driver
+clean: cleanobj
+ rm -f hello-sskel.?xx
diff --git a/dist/examples/cxx/serializer/library/makefile b/dist/examples/cxx/serializer/library/makefile
index 58f9dcd..cf275b9 100644
--- a/dist/examples/cxx/serializer/library/makefile
+++ b/dist/examples/cxx/serializer/library/makefile
@@ -41,6 +41,12 @@ library-sskel.o: library-sskel.cxx library-sskel.hxx library.hxx
--type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: library-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -50,7 +56,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f library-sskel.?xx $(impl).o library-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o library-sskel.o driver.o driver
+clean: cleanobj
+ rm -f library-sskel.?xx
diff --git a/dist/examples/cxx/serializer/minimal/makefile b/dist/examples/cxx/serializer/minimal/makefile
index ff94a42..4c8c23c 100644
--- a/dist/examples/cxx/serializer/minimal/makefile
+++ b/dist/examples/cxx/serializer/minimal/makefile
@@ -45,6 +45,13 @@ people-sskel.o: people-sskel.cxx people-sskel.hxx people.hxx
$(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--type-map $*.map $<
+
+# Generate.
+#
+.PHONY: gen
+gen: people-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -54,7 +61,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f people-sskel.?xx people-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f people-sskel.o driver.o driver
+clean: cleanobj
+ rm -f people-sskel.?xx
diff --git a/dist/examples/cxx/serializer/nmakefile b/dist/examples/cxx/serializer/nmakefile
index b207482..23f9524 100644
--- a/dist/examples/cxx/serializer/nmakefile
+++ b/dist/examples/cxx/serializer/nmakefile
@@ -39,6 +39,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/serializer/polymorphism/makefile b/dist/examples/cxx/serializer/polymorphism/makefile
index eab3e3e..a602422 100644
--- a/dist/examples/cxx/serializer/polymorphism/makefile
+++ b/dist/examples/cxx/serializer/polymorphism/makefile
@@ -37,6 +37,12 @@ supermen-sskel.o: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
--generate-polymorphic --type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: supermen-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -46,7 +52,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f supermen-sskel.?xx $(impl).o supermen-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o supermen-sskel.o driver.o driver
+clean: cleanobj
+ rm -f supermen-sskel.?xx
diff --git a/dist/examples/cxx/serializer/polyroot/makefile b/dist/examples/cxx/serializer/polyroot/makefile
index eab3e3e..a602422 100644
--- a/dist/examples/cxx/serializer/polyroot/makefile
+++ b/dist/examples/cxx/serializer/polyroot/makefile
@@ -37,6 +37,12 @@ supermen-sskel.o: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
--generate-polymorphic --type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: supermen-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -46,7 +52,9 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f supermen-sskel.?xx $(impl).o supermen-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f $(impl).o supermen-sskel.o driver.o driver
+clean: cleanobj
+ rm -f supermen-sskel.?xx
diff --git a/dist/examples/cxx/serializer/wildcard/makefile b/dist/examples/cxx/serializer/wildcard/makefile
index 96a73e8..9c99a98 100644
--- a/dist/examples/cxx/serializer/wildcard/makefile
+++ b/dist/examples/cxx/serializer/wildcard/makefile
@@ -30,6 +30,12 @@ email-sskel.o: email-sskel.cxx email-sskel.hxx email.hxx
--type-map $*.map $<
+# Generate.
+#
+.PHONY: gen
+gen: email-sskel.hxx
+
+
# Test.
#
.PHONY: test
@@ -39,7 +45,10 @@ test: driver
# Clean.
#
-.PHONY: clean
-clean:
- rm -f email-sskel.?xx email-sskel.o driver.o driver
+.PHONY: clean cleanobj
+cleanobj:
+ rm -f email-sskel.o driver.o driver
+
+clean: cleanobj
+ rm -f email-sskel.?xx
diff --git a/dist/examples/nmakefile b/dist/examples/nmakefile
index 1f3db7e..2dea67e 100644
--- a/dist/examples/nmakefile
+++ b/dist/examples/nmakefile
@@ -4,6 +4,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 $@"