aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/serializer
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/serializer
parent1a574444dcad797bdc450f7e6a1347d0f2bbf758 (diff)
Add gen and cleanobj targets to makefiles in examples
Diffstat (limited to 'dist/examples/cxx/serializer')
-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
7 files changed, 70 insertions, 19 deletions
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