diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-21 07:36:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-21 07:36:31 +0200 |
commit | 45acf3694bc4d111fc27310e64a3f9b2866f4822 (patch) | |
tree | 7b56c91c896c77c71608de2e52c8d4d93872d0bc /dist/examples/cxx/parser | |
parent | 8302018362ba1bc362a72ad3f6744ce6262b33af (diff) |
Add gen and cleanobj targets to nmakefiles in examples
Diffstat (limited to 'dist/examples/cxx/parser')
-rw-r--r-- | dist/examples/cxx/parser/generated/nmakefile | 11 | ||||
-rw-r--r-- | dist/examples/cxx/parser/hello/nmakefile | 12 | ||||
-rw-r--r-- | dist/examples/cxx/parser/library/nmakefile | 11 | ||||
-rw-r--r-- | dist/examples/cxx/parser/minimal/nmakefile | 13 | ||||
-rw-r--r-- | dist/examples/cxx/parser/mixed/nmakefile | 12 | ||||
-rw-r--r-- | dist/examples/cxx/parser/multiroot/nmakefile | 12 | ||||
-rw-r--r-- | dist/examples/cxx/parser/polymorphism/nmakefile | 11 | ||||
-rw-r--r-- | dist/examples/cxx/parser/polyroot/nmakefile | 11 | ||||
-rw-r--r-- | dist/examples/cxx/parser/wildcard/nmakefile | 12 |
9 files changed, 87 insertions, 18 deletions
diff --git a/dist/examples/cxx/parser/generated/nmakefile b/dist/examples/cxx/parser/generated/nmakefile index ee4597e..ad0900c 100644 --- a/dist/examples/cxx/parser/generated/nmakefile +++ b/dist/examples/cxx/parser/generated/nmakefile @@ -55,6 +55,11 @@ library-pdriver.cxx: library.xsd $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) library.xsd +# Generate. +# +gen: library-pdriver.cxx + + # Test. # test: library-pdriver.exe library.xml @@ -63,6 +68,8 @@ test: library-pdriver.exe library.xml # Clean. # -clean: - -del library-pdriver.?xx library-pimpl.?xx library-pskel.?xx +cleanobj: -del library-pdriver.obj library-pimpl.obj library-pskel.obj library-pdriver.exe + +clean: cleanobj + -del library-pdriver.?xx library-pimpl.?xx library-pskel.?xx diff --git a/dist/examples/cxx/parser/hello/nmakefile b/dist/examples/cxx/parser/hello/nmakefile index e8b6ccf..40d1307 100644 --- a/dist/examples/cxx/parser/hello/nmakefile +++ b/dist/examples/cxx/parser/hello/nmakefile @@ -34,6 +34,12 @@ hello-pskel.obj: hello-pskel.cxx hello-pskel.hxx hello-pskel.cxx hello-pskel.hxx: hello.xsd $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) hello.xsd + +# Generate. +# +gen: hello-pskel.hxx + + # Test. # test: driver.exe hello.xml @@ -42,6 +48,8 @@ test: driver.exe hello.xml # Clean. # -clean: - -del hello-pskel.?xx hello-pskel.obj driver.obj driver.exe +cleanobj: + -del hello-pskel.obj driver.obj driver.exe +clean: cleanobj + -del hello-pskel.?xx diff --git a/dist/examples/cxx/parser/library/nmakefile b/dist/examples/cxx/parser/library/nmakefile index 42d2a71..21ffebd 100644 --- a/dist/examples/cxx/parser/library/nmakefile +++ b/dist/examples/cxx/parser/library/nmakefile @@ -40,6 +40,11 @@ library-pskel.hxx library-pskel.cxx: library.xsd library.map --type-map library.map library.xsd +# Generate. +# +gen: library-pskel.hxx + + # Test. # test: driver.exe library.xml @@ -48,6 +53,8 @@ test: driver.exe library.xml # Clean. # -clean: - -del library-pskel.?xx $(impl).obj library-pskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj library-pskel.obj driver.obj driver.exe +clean: cleanobj + -del library-pskel.?xx diff --git a/dist/examples/cxx/parser/minimal/nmakefile b/dist/examples/cxx/parser/minimal/nmakefile index 4230425..addf4c8 100644 --- a/dist/examples/cxx/parser/minimal/nmakefile +++ b/dist/examples/cxx/parser/minimal/nmakefile @@ -43,6 +43,12 @@ people-pskel.cxx people-pskel.hxx: people.xsd people.map $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --type-map people.map people.xsd + +# Generate. +# +gen: people-pskel.hxx + + # Test. # test: driver.exe people.xml @@ -51,6 +57,9 @@ test: driver.exe people.xml # Clean. # -clean: - -del people-pskel.?xx people-pskel.obj driver.obj driver.exe +cleanobj: + -del people-pskel.obj driver.obj driver.exe + +clean: cleanobj + -del people-pskel.?xx diff --git a/dist/examples/cxx/parser/mixed/nmakefile b/dist/examples/cxx/parser/mixed/nmakefile index 5f9ebc9..d25c2ae 100644 --- a/dist/examples/cxx/parser/mixed/nmakefile +++ b/dist/examples/cxx/parser/mixed/nmakefile @@ -27,6 +27,12 @@ text-pskel.hxx text-pskel.cxx: text.xsd text.map $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --type-map text.map text.xsd + +# Generate. +# +gen: text-pskel.hxx + + # Test. # test: driver.exe text.xml @@ -35,6 +41,8 @@ test: driver.exe text.xml # Clean. # -clean: - -del text-pskel.?xx text-pskel.obj driver.obj driver.exe +cleanobj: + -del text-pskel.obj driver.obj driver.exe +clean: cleanobj + -del text-pskel.?xx diff --git a/dist/examples/cxx/parser/multiroot/nmakefile b/dist/examples/cxx/parser/multiroot/nmakefile index 05e6a7d..632b38b 100644 --- a/dist/examples/cxx/parser/multiroot/nmakefile +++ b/dist/examples/cxx/parser/multiroot/nmakefile @@ -41,6 +41,11 @@ protocol-pskel.hxx protocol-pskel.cxx: protocol.xsd protocol.map --type-map protocol.map protocol.xsd +# Generate. +# +gen: protocol-pskel.hxx + + # Test. # test: driver.exe balance.xml withdraw.xml deposit.xml @@ -50,5 +55,8 @@ test: driver.exe balance.xml withdraw.xml deposit.xml # Clean. # -clean: - -del protocol-pskel.?xx $(impl).obj protocol-pskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj protocol-pskel.obj driver.obj driver.exe + +clean: cleanobj + -del protocol-pskel.?xx diff --git a/dist/examples/cxx/parser/polymorphism/nmakefile b/dist/examples/cxx/parser/polymorphism/nmakefile index 7047eb1..a35b625 100644 --- a/dist/examples/cxx/parser/polymorphism/nmakefile +++ b/dist/examples/cxx/parser/polymorphism/nmakefile @@ -36,6 +36,11 @@ supermen-pskel.hxx supermen-pskel.cxx: supermen.xsd --generate-polymorphic supermen.xsd +# Generate. +# +gen: supermen-pskel.hxx + + # Test. # test: driver.exe supermen.xml @@ -44,6 +49,8 @@ test: driver.exe supermen.xml # Clean. # -clean: - -del supermen-pskel.?xx $(impl).obj supermen-pskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj supermen-pskel.obj driver.obj driver.exe +clean: cleanobj + -del supermen-pskel.?xx diff --git a/dist/examples/cxx/parser/polyroot/nmakefile b/dist/examples/cxx/parser/polyroot/nmakefile index 02146ad..f3c4ff0 100644 --- a/dist/examples/cxx/parser/polyroot/nmakefile +++ b/dist/examples/cxx/parser/polyroot/nmakefile @@ -36,6 +36,11 @@ supermen-pskel.hxx supermen-pskel.cxx: supermen.xsd --generate-polymorphic supermen.xsd +# Generate. +# +gen: supermen-pskel.hxx + + # Test. # test: driver.exe person.xml batman.xml superman.xml @@ -46,6 +51,8 @@ test: driver.exe person.xml batman.xml superman.xml # Clean. # -clean: - -del supermen-pskel.?xx $(impl).obj supermen-pskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj supermen-pskel.obj driver.obj driver.exe +clean: cleanobj + -del supermen-pskel.?xx diff --git a/dist/examples/cxx/parser/wildcard/nmakefile b/dist/examples/cxx/parser/wildcard/nmakefile index c1f333b..c912a1c 100644 --- a/dist/examples/cxx/parser/wildcard/nmakefile +++ b/dist/examples/cxx/parser/wildcard/nmakefile @@ -26,6 +26,12 @@ email-pskel.obj: email-pskel.cxx email-pskel.hxx email-pskel.cxx email-pskel.hxx: email.xsd $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) email.xsd + +# Generate. +# +gen: email-pskel.hxx + + # Test. # test: driver.exe email.xml @@ -34,6 +40,8 @@ test: driver.exe email.xml # Clean. # -clean: - -del email-pskel.?xx email-pskel.obj driver.obj driver.exe +cleanobj: + -del email-pskel.obj driver.obj driver.exe +clean: cleanobj + -del email-pskel.?xx |