aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/parser/minimal/makefile
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/minimal/makefile
parent1a574444dcad797bdc450f7e6a1347d0f2bbf758 (diff)
Add gen and cleanobj targets to makefiles in examples
Diffstat (limited to 'dist/examples/cxx/parser/minimal/makefile')
-rw-r--r--dist/examples/cxx/parser/minimal/makefile15
1 files changed, 12 insertions, 3 deletions
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