From 45acf3694bc4d111fc27310e64a3f9b2866f4822 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Oct 2009 07:36:31 +0200 Subject: Add gen and cleanobj targets to nmakefiles in examples --- dist/examples/cxx/hybrid/binary/cdr/nmakefile | 15 ++++++++++++--- dist/examples/cxx/hybrid/binary/custom/nmakefile | 18 ++++++++++++++---- dist/examples/cxx/hybrid/binary/xdr/nmakefile | 15 ++++++++++++--- dist/examples/cxx/hybrid/compositors/nmakefile | 14 ++++++++++++-- dist/examples/cxx/hybrid/custom/wildcard/nmakefile | 17 +++++++++++++---- dist/examples/cxx/hybrid/filter/nmakefile | 15 ++++++++++++--- dist/examples/cxx/hybrid/hello/nmakefile | 14 +++++++++++--- dist/examples/cxx/hybrid/library/nmakefile | 16 +++++++++++++--- dist/examples/cxx/hybrid/minimal/nmakefile | 15 ++++++++++++--- dist/examples/cxx/hybrid/multiroot/nmakefile | 16 +++++++++++++--- dist/examples/cxx/hybrid/polymorphism/nmakefile | 15 ++++++++++++--- dist/examples/cxx/hybrid/polyroot/nmakefile | 16 +++++++++++++--- dist/examples/cxx/hybrid/streaming/nmakefile | 18 ++++++++++++++---- dist/examples/cxx/hybrid/wildcard/nmakefile | 18 ++++++++++++++---- dist/examples/cxx/parser/generated/nmakefile | 11 +++++++++-- dist/examples/cxx/parser/hello/nmakefile | 12 ++++++++++-- dist/examples/cxx/parser/library/nmakefile | 11 +++++++++-- dist/examples/cxx/parser/minimal/nmakefile | 13 +++++++++++-- dist/examples/cxx/parser/mixed/nmakefile | 12 ++++++++++-- dist/examples/cxx/parser/multiroot/nmakefile | 12 ++++++++++-- dist/examples/cxx/parser/polymorphism/nmakefile | 11 +++++++++-- dist/examples/cxx/parser/polyroot/nmakefile | 11 +++++++++-- dist/examples/cxx/parser/wildcard/nmakefile | 12 ++++++++++-- dist/examples/cxx/serializer/hello/nmakefile | 12 ++++++++++-- dist/examples/cxx/serializer/library/nmakefile | 11 +++++++++-- dist/examples/cxx/serializer/minimal/nmakefile | 13 +++++++++++-- dist/examples/cxx/serializer/polymorphism/nmakefile | 11 +++++++++-- dist/examples/cxx/serializer/polyroot/nmakefile | 11 +++++++++-- dist/examples/cxx/serializer/wildcard/nmakefile | 11 +++++++++-- 29 files changed, 321 insertions(+), 75 deletions(-) diff --git a/dist/examples/cxx/hybrid/binary/cdr/nmakefile b/dist/examples/cxx/hybrid/binary/cdr/nmakefile index f08cd4c..3ec7fa3 100644 --- a/dist/examples/cxx/hybrid/binary/cdr/nmakefile +++ b/dist/examples/cxx/hybrid/binary/cdr/nmakefile @@ -46,6 +46,12 @@ library-sskel.cxx library-sskel.hxx library-simpl.cxx library-simpl.hxx \ --generate-parser --generate-serializer --generate-aggregate \ --generate-insertion CDR --generate-extraction CDR library.xsd + +# Generate. +# +gen: library.hxx + + # Test. # test: driver.exe library.xml @@ -53,7 +59,10 @@ test: driver.exe library.xml # Clean. # -clean: +cleanobj: + -del library-pimpl.obj library-pskel.obj library-simpl.obj \ +library-sskel.obj library.obj driver.obj driver.exe + +clean: cleanobj -del library-pimpl.?xx library-pskel.?xx library-simpl.?xx \ -library-sskel.?xx library.?xx library-pimpl.obj library-pskel.obj \ -library-simpl.obj library-sskel.obj library.obj driver.obj driver.exe +library-sskel.?xx library.?xx diff --git a/dist/examples/cxx/hybrid/binary/custom/nmakefile b/dist/examples/cxx/hybrid/binary/custom/nmakefile index c99b887..9e20731 100644 --- a/dist/examples/cxx/hybrid/binary/custom/nmakefile +++ b/dist/examples/cxx/hybrid/binary/custom/nmakefile @@ -57,16 +57,26 @@ library-sskel.cxx library-sskel.hxx library-simpl.cxx library-simpl.hxx \ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --options-file options library.xsd + +# Generate. +# +gen: xml-schema.hxx library.hxx + + # Test. # test: driver.exe library.xml .\driver.exe library.xml + # Clean. # -clean: - -del 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.obj library-pskel.obj library-simpl.obj \ +cleanobj: + -del library-pimpl.obj library-pskel.obj library-simpl.obj \ library-sskel.obj library.obj irawstream.obj orawstream.obj exceptions.obj \ driver.obj driver.exe + +clean: cleanobj + -del 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 diff --git a/dist/examples/cxx/hybrid/binary/xdr/nmakefile b/dist/examples/cxx/hybrid/binary/xdr/nmakefile index 2930de2..0713b8a 100644 --- a/dist/examples/cxx/hybrid/binary/xdr/nmakefile +++ b/dist/examples/cxx/hybrid/binary/xdr/nmakefile @@ -44,6 +44,12 @@ library-sskel.cxx library-sskel.hxx library-simpl.cxx library-simpl.hxx \ --generate-parser --generate-serializer --generate-aggregate \ --generate-insertion XDR --generate-extraction XDR library.xsd + +# Generate. +# +gen: library.hxx + + # Test. # test: driver.exe library.xml @@ -51,7 +57,10 @@ test: driver.exe library.xml # Clean. # -clean: +cleanobj: + -del library-pimpl.obj library-pskel.obj library-simpl.obj \ +library-sskel.obj library.obj driver.obj driver.exe + +clean: cleanobj -del library-pimpl.?xx library-pskel.?xx library-simpl.?xx \ -library-sskel.?xx library.?xx library-pimpl.obj library-pskel.obj \ -library-simpl.obj library-sskel.obj library.obj driver.obj driver.exe +library-sskel.?xx library.?xx diff --git a/dist/examples/cxx/hybrid/compositors/nmakefile b/dist/examples/cxx/hybrid/compositors/nmakefile index b51cbe3..8ac4238 100644 --- a/dist/examples/cxx/hybrid/compositors/nmakefile +++ b/dist/examples/cxx/hybrid/compositors/nmakefile @@ -42,12 +42,22 @@ compositors.obj: compositors.cxx compositors.cxx compositors.hxx: compositors.xsd $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) compositors.xsd + +# Generate. +# +gen: compositors.hxx + + # Test. # test: driver.exe .\driver.exe + # Clean. # -clean: - -del compositors.?xx compositors.obj driver.obj driver.exe +cleanobj: + -del compositors.obj driver.obj driver.exe + +clean: cleanobj + -del compositors.?xx diff --git a/dist/examples/cxx/hybrid/custom/wildcard/nmakefile b/dist/examples/cxx/hybrid/custom/wildcard/nmakefile index 33f3570..94992cb 100644 --- a/dist/examples/cxx/hybrid/custom/wildcard/nmakefile +++ b/dist/examples/cxx/hybrid/custom/wildcard/nmakefile @@ -43,6 +43,12 @@ email-sskel.cxx email-sskel.hxx email-simpl.cxx email-simpl.hxx \ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --options-file options email.xsd + +# Generate. +# +gen: email.hxx + + # Test. # test: driver.exe email.xml @@ -50,8 +56,11 @@ test: driver.exe email.xml # Clean. # -clean: +cleanobj: + -del envelope-pimpl.obj envelope-simpl.obj email-pimpl.obj \ +email-pskel.obj email-simpl.obj email-sskel.obj body.obj email.obj \ +driver.obj driver.exe + +clean: cleanobj -del email-pimpl.?xx email-pskel.?xx email-simpl.?xx \ -email-sskel.?xx email.?xx envelope-pimpl.obj envelope-simpl.obj \ -email-pimpl.obj email-pskel.obj email-simpl.obj email-sskel.obj \ -body.obj email.obj driver.obj driver.exe +email-sskel.?xx email.?xx diff --git a/dist/examples/cxx/hybrid/filter/nmakefile b/dist/examples/cxx/hybrid/filter/nmakefile index 0343a90..4bc4328 100644 --- a/dist/examples/cxx/hybrid/filter/nmakefile +++ b/dist/examples/cxx/hybrid/filter/nmakefile @@ -44,6 +44,12 @@ people-sskel.cxx people-sskel.hxx people-simpl.cxx people-simpl.hxx \ --custom-parser people=people_base_pimpl/people-custom-pimpl.hxx \ --custom-serializer people=people_base_simpl/people-custom-simpl.hxx people.xsd + +# Generate. +# +gen: people.hxx + + # Test. # test: driver.exe people.xml @@ -51,8 +57,11 @@ test: driver.exe people.xml # Clean. # -clean: - -del people-pimpl.?xx people-pskel.?xx people-simpl.?xx \ -people-sskel.?xx people.?xx people-custom-pimpl.obj people-custom-simpl.obj \ +cleanobj: + -del people-custom-pimpl.obj people-custom-simpl.obj \ people-pimpl.obj people-pskel.obj people-simpl.obj people-sskel.obj \ people.obj driver.obj driver.exe + +clean: cleanobj + -del people-pimpl.?xx people-pskel.?xx people-simpl.?xx \ +people-sskel.?xx people.?xx diff --git a/dist/examples/cxx/hybrid/hello/nmakefile b/dist/examples/cxx/hybrid/hello/nmakefile index 2e5730f..6fee8d4 100644 --- a/dist/examples/cxx/hybrid/hello/nmakefile +++ b/dist/examples/cxx/hybrid/hello/nmakefile @@ -39,6 +39,12 @@ hello-pimpl.cxx hello-pimpl.hxx: hello.xsd $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --generate-parser --generate-aggregate hello.xsd + +# Generate. +# +gen: hello.hxx + + # Test. # test: driver.exe hello.xml @@ -46,6 +52,8 @@ test: driver.exe hello.xml # Clean. # -clean: - -del hello-pimpl.?xx hello-pskel.?xx hello.?xx hello-pimpl.obj \ -hello-pskel.obj hello.obj driver.obj driver.exe +cleanobj: + -del hello-pimpl.obj hello-pskel.obj hello.obj driver.obj driver.exe + +clean: cleanobj + -del hello-pimpl.?xx hello-pskel.?xx hello.?xx diff --git a/dist/examples/cxx/hybrid/library/nmakefile b/dist/examples/cxx/hybrid/library/nmakefile index a8c1730..0d760a0 100644 --- a/dist/examples/cxx/hybrid/library/nmakefile +++ b/dist/examples/cxx/hybrid/library/nmakefile @@ -40,14 +40,24 @@ library-sskel.cxx library-sskel.hxx library-simpl.cxx library-simpl.hxx \ --generate-parser --generate-serializer --generate-aggregate \ --omit-default-attributes library.xsd + +# Generate. +# +gen: library.hxx + + # Test. # test: driver.exe library.xml .\driver.exe library.xml + # Clean. # -clean: +cleanobj: + -del library-pimpl.obj library-pskel.obj library-simpl.obj \ +library-sskel.obj library.obj driver.obj driver.exe + +clean: cleanobj -del library-pimpl.?xx library-pskel.?xx library-simpl.?xx \ -library-sskel.?xx library.?xx library-pimpl.obj library-pskel.obj \ -library-simpl.obj library-sskel.obj library.obj driver.obj driver.exe +library-sskel.?xx library.?xx diff --git a/dist/examples/cxx/hybrid/minimal/nmakefile b/dist/examples/cxx/hybrid/minimal/nmakefile index f3faf72..c76ea37 100644 --- a/dist/examples/cxx/hybrid/minimal/nmakefile +++ b/dist/examples/cxx/hybrid/minimal/nmakefile @@ -45,6 +45,12 @@ people-sskel.cxx people-sskel.hxx people-simpl.cxx people-simpl.hxx \ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --generate-parser --generate-serializer --generate-aggregate people.xsd + +# Generate. +# +gen: people.hxx + + # Test. # test: driver.exe people.xml @@ -52,7 +58,10 @@ test: driver.exe people.xml # Clean. # -clean: +cleanobj: + -del people-pimpl.obj people-pskel.obj people-simpl.obj \ +people-sskel.obj people.obj driver.obj driver.exe + +clean: cleanobj -del people-pimpl.?xx people-pskel.?xx people-simpl.?xx \ -people-sskel.?xx people.?xx people-pimpl.obj people-pskel.obj \ -people-simpl.obj people-sskel.obj people.obj driver.obj driver.exe +people-sskel.?xx people.?xx diff --git a/dist/examples/cxx/hybrid/multiroot/nmakefile b/dist/examples/cxx/hybrid/multiroot/nmakefile index bd3ffe3..9a94cd8 100644 --- a/dist/examples/cxx/hybrid/multiroot/nmakefile +++ b/dist/examples/cxx/hybrid/multiroot/nmakefile @@ -39,6 +39,12 @@ protocol-pimpl.cxx protocol-pimpl.hxx: protocol.xsd $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --generate-parser --generate-aggregate --root-element-all protocol.xsd + +# Generate. +# +gen: protocol.hxx + + # Test. # test: driver.exe balance.xml withdraw.xml deposit.xml @@ -46,8 +52,12 @@ test: driver.exe balance.xml withdraw.xml deposit.xml .\driver withdraw.xml .\driver deposit.xml + # Clean. # -clean: - -del protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx \ -protocol-pimpl.obj protocol-pskel.obj protocol.obj driver.obj driver.exe +cleanobj: + -del protocol-pimpl.obj protocol-pskel.obj protocol.obj \ +driver.obj driver.exe + +clean: cleanobj + -del protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx diff --git a/dist/examples/cxx/hybrid/polymorphism/nmakefile b/dist/examples/cxx/hybrid/polymorphism/nmakefile index 479a557..7ff1476 100644 --- a/dist/examples/cxx/hybrid/polymorphism/nmakefile +++ b/dist/examples/cxx/hybrid/polymorphism/nmakefile @@ -40,6 +40,12 @@ supermen-sskel.cxx supermen-sskel.hxx supermen-simpl.cxx supermen-simpl.hxx \ --generate-parser --generate-serializer --generate-aggregate \ --generate-polymorphic --generate-typeinfo --root-element supermen supermen.xsd + +# Generate. +# +gen: supermen.hxx + + # Test. # test: driver.exe supermen.xml @@ -47,7 +53,10 @@ test: driver.exe supermen.xml # Clean. # -clean: +cleanobj: + -del supermen-pimpl.obj supermen-pskel.obj supermen-simpl.obj \ +supermen-sskel.obj supermen.obj driver.obj driver.exe + +clean: cleanobj -del supermen-pimpl.?xx supermen-pskel.?xx supermen-simpl.?xx \ -supermen-sskel.?xx supermen.?xx supermen-pimpl.obj supermen-pskel.obj \ -supermen-simpl.obj supermen-sskel.obj supermen.obj driver.obj driver.exe +supermen-sskel.?xx supermen.?xx diff --git a/dist/examples/cxx/hybrid/polyroot/nmakefile b/dist/examples/cxx/hybrid/polyroot/nmakefile index 8d098bb..20453eb 100644 --- a/dist/examples/cxx/hybrid/polyroot/nmakefile +++ b/dist/examples/cxx/hybrid/polyroot/nmakefile @@ -40,6 +40,12 @@ supermen-sskel.cxx supermen-sskel.hxx supermen-simpl.cxx supermen-simpl.hxx \ --generate-parser --generate-serializer --generate-aggregate \ --generate-polymorphic --generate-typeinfo --root-element person supermen.xsd + +# Generate. +# +gen: supermen.hxx + + # Test. # test: driver.exe person.xml batman.xml superman.xml @@ -47,9 +53,13 @@ test: driver.exe person.xml batman.xml superman.xml .\driver batman.xml .\driver superman.xml + # Clean. # -clean: +cleanobj: + -del supermen-pimpl.obj supermen-pskel.obj supermen-simpl.obj \ +supermen-sskel.obj supermen.obj driver.obj driver.exe + +clean: cleanobj -del supermen-pimpl.?xx supermen-pskel.?xx supermen-simpl.?xx \ -supermen-sskel.?xx supermen.?xx supermen-pimpl.obj supermen-pskel.obj \ -supermen-simpl.obj supermen-sskel.obj supermen.obj driver.obj driver.exe +supermen-sskel.?xx supermen.?xx diff --git a/dist/examples/cxx/hybrid/streaming/nmakefile b/dist/examples/cxx/hybrid/streaming/nmakefile index a981d82..25e6e1b 100644 --- a/dist/examples/cxx/hybrid/streaming/nmakefile +++ b/dist/examples/cxx/hybrid/streaming/nmakefile @@ -48,15 +48,25 @@ position-sskel.cxx position-sskel.hxx position-simpl.cxx position-simpl.hxx \ --custom-parser object=/object-pimpl.hxx \ --custom-serializer object=/object-simpl.hxx position.xsd + +# Generate. +# +gen: position.hxx + + # Test. # test: driver.exe position.xml .\driver.exe position.xml + # Clean. # -clean: +cleanobj: + -del object-pimpl.obj object-simpl.obj position-pimpl.obj \ +position-pskel.obj position-simpl.obj position-sskel.obj position.obj \ +driver.obj driver.exe + +clean: cleanobj -del position-pimpl.?xx position-pskel.?xx position-simpl.?xx \ -position-sskel.?xx position.?xx object-pimpl.obj object-simpl.obj \ -position-pimpl.obj position-pskel.obj position-simpl.obj position-sskel.obj \ -position.obj driver.obj driver.exe +position-sskel.?xx position.?xx diff --git a/dist/examples/cxx/hybrid/wildcard/nmakefile b/dist/examples/cxx/hybrid/wildcard/nmakefile index 83e3ba0..689ac2f 100644 --- a/dist/examples/cxx/hybrid/wildcard/nmakefile +++ b/dist/examples/cxx/hybrid/wildcard/nmakefile @@ -46,15 +46,25 @@ email-sskel.cxx email-sskel.hxx email-simpl.cxx email-simpl.hxx \ --custom-parser envelope=envelope_base_pimpl/envelope-pimpl.hxx \ --custom-serializer envelope=envelope_base_simpl/envelope-simpl.hxx email.xsd + +# Generate. +# +gen: email.hxx + + # Test. # test: driver.exe email.xml .\driver.exe email.xml + # Clean. # -clean: +cleanobj: + -del envelope-pimpl.obj envelope-simpl.obj email-pimpl.obj \ +email-pskel.obj email-simpl.obj email-sskel.obj body.obj email.obj \ +driver.obj driver.exe + +clean: cleanobj -del email-pimpl.?xx email-pskel.?xx email-simpl.?xx \ -email-sskel.?xx email.?xx envelope-pimpl.obj envelope-simpl.obj \ -email-pimpl.obj email-pskel.obj email-simpl.obj email-sskel.obj \ -body.obj email.obj driver.obj driver.exe +email-sskel.?xx email.?xx 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 diff --git a/dist/examples/cxx/serializer/hello/nmakefile b/dist/examples/cxx/serializer/hello/nmakefile index f6b83ce..f3b3d2c 100644 --- a/dist/examples/cxx/serializer/hello/nmakefile +++ b/dist/examples/cxx/serializer/hello/nmakefile @@ -34,6 +34,12 @@ hello-sskel.obj: hello-sskel.cxx hello-sskel.hxx hello-sskel.cxx hello-sskel.hxx: hello.xsd $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) hello.xsd + +# Generate. +# +gen: hello-sskel.hxx + + # Test. # test: driver.exe @@ -42,6 +48,8 @@ test: driver.exe # Clean. # -clean: - -del hello-sskel.?xx hello-sskel.obj driver.obj driver.exe +cleanobj: + -del hello-sskel.obj driver.obj driver.exe +clean: cleanobj + -del hello-sskel.?xx diff --git a/dist/examples/cxx/serializer/library/nmakefile b/dist/examples/cxx/serializer/library/nmakefile index 406374a..9399f5d 100644 --- a/dist/examples/cxx/serializer/library/nmakefile +++ b/dist/examples/cxx/serializer/library/nmakefile @@ -40,6 +40,11 @@ library-sskel.hxx library-sskel.cxx: library.xsd library.map --type-map library.map library.xsd +# Generate. +# +gen: library-sskel.hxx + + # Test. # test: driver.exe @@ -48,6 +53,8 @@ test: driver.exe # Clean. # -clean: - -del library-sskel.?xx $(impl).obj library-sskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj library-sskel.obj driver.obj driver.exe +clean: cleanobj + -del library-sskel.?xx diff --git a/dist/examples/cxx/serializer/minimal/nmakefile b/dist/examples/cxx/serializer/minimal/nmakefile index d85fade..7b1def3 100644 --- a/dist/examples/cxx/serializer/minimal/nmakefile +++ b/dist/examples/cxx/serializer/minimal/nmakefile @@ -43,6 +43,12 @@ people-sskel.cxx people-sskel.hxx: people.xsd people.map $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \ --type-map people.map people.xsd + +# Generate. +# +gen: people-sskel.hxx + + # Test. # test: driver.exe @@ -51,5 +57,8 @@ test: driver.exe # Clean. # -clean: - -del people-sskel.?xx people-sskel.obj driver.obj driver.exe +cleanobj: + -del people-sskel.obj driver.obj driver.exe + +clean: cleanobj + -del people-sskel.?xx diff --git a/dist/examples/cxx/serializer/polymorphism/nmakefile b/dist/examples/cxx/serializer/polymorphism/nmakefile index 8bb5d26..ad10eea 100644 --- a/dist/examples/cxx/serializer/polymorphism/nmakefile +++ b/dist/examples/cxx/serializer/polymorphism/nmakefile @@ -36,6 +36,11 @@ supermen-sskel.hxx supermen-sskel.cxx: supermen.xsd supermen.map --generate-polymorphic --type-map supermen.map supermen.xsd +# Generate. +# +gen: supermen-sskel.hxx + + # Test. # test: driver.exe @@ -44,6 +49,8 @@ test: driver.exe # Clean. # -clean: - -del supermen-sskel.?xx $(impl).obj supermen-sskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj supermen-sskel.obj driver.obj driver.exe +clean: cleanobj + -del supermen-sskel.?xx diff --git a/dist/examples/cxx/serializer/polyroot/nmakefile b/dist/examples/cxx/serializer/polyroot/nmakefile index 8bb5d26..ad10eea 100644 --- a/dist/examples/cxx/serializer/polyroot/nmakefile +++ b/dist/examples/cxx/serializer/polyroot/nmakefile @@ -36,6 +36,11 @@ supermen-sskel.hxx supermen-sskel.cxx: supermen.xsd supermen.map --generate-polymorphic --type-map supermen.map supermen.xsd +# Generate. +# +gen: supermen-sskel.hxx + + # Test. # test: driver.exe @@ -44,6 +49,8 @@ test: driver.exe # Clean. # -clean: - -del supermen-sskel.?xx $(impl).obj supermen-sskel.obj driver.obj driver.exe +cleanobj: + -del $(impl).obj supermen-sskel.obj driver.obj driver.exe +clean: cleanobj + -del supermen-sskel.?xx diff --git a/dist/examples/cxx/serializer/wildcard/nmakefile b/dist/examples/cxx/serializer/wildcard/nmakefile index a84347e..a6c0feb 100644 --- a/dist/examples/cxx/serializer/wildcard/nmakefile +++ b/dist/examples/cxx/serializer/wildcard/nmakefile @@ -29,6 +29,11 @@ email-sskel.hxx email-sskel.cxx: email.xsd email.map --type-map email.map email.xsd +# Generate. +# +gen: email-sskel.hxx + + # Test. # test: driver.exe @@ -37,6 +42,8 @@ test: driver.exe # Clean. # -clean: - -del email-sskel.?xx email-sskel.obj driver.obj driver.exe +cleanobj: + -del email-sskel.obj driver.obj driver.exe +clean: cleanobj + -del email-sskel.?xx -- cgit v1.1