Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. all: odf grammarnew.py
  2. #simplified-7-22.rng: OpenDocument-strict-schema-v1.2-draft7.rng OpenDocument-schema-v1.0-os.rng
  3. #simple-schema-7-22.rng: OpenDocument-strict-schema-v1.0-os.rng OpenDocument-schema-v1.0-os.rng simplification.xsl
  4. #simple-schema-7-22.rng: OpenDocument-strict-schema-v1.1.rng OpenDocument-schema-v1.1.rng simplification.xsl
  5. simple-schema-7-22.rng: OpenDocument-v1.2-os-schema.rng simplification.xsl
  6. xsltproc --stringparam out-name simple-schema- simplification.xsl $<
  7. simple-manifest-7-22.rng: OpenDocument-manifest-schema-v1.0-os.rng simplification.xsl
  8. xsltproc --stringparam out-name simple-manifest- simplification.xsl $<
  9. grammarnew.py: allowed_children.py allows_text.py required_attrs.py allowed_attrs.py
  10. cat allowed_children.py allows_text.py required_attrs.py allowed_attrs.py >grammarnew.py
  11. allowed_children.py: simple-schema-7-22.rng simple-manifest-7-22.rng gen_allowed_children.py
  12. python gen_allowed_children.py > allowed_children.py
  13. allows_text.py: simple-schema-7-22.rng simple-manifest-7-22.rng gen_allows_text.py
  14. python gen_allows_text.py > allows_text.py
  15. required_attrs.py: simple-schema-7-22.rng simple-manifest-7-22.rng simple-manifest-7-22.rng gen_required_attrs.py
  16. python gen_required_attrs.py > required_attrs.py
  17. allowed_attrs.py: simple-schema-7-22.rng simple-manifest-7-22.rng gen_allowed_attrs.py
  18. python gen_allowed_attrs.py > allowed_attrs.py
  19. clean:
  20. rm -f odf simple-schema-7-*.rng simple-manifest-7-*.rng \
  21. required_attrs.py allowed_attrs.py allowed_children.py allows_text.py \
  22. grammarnew.py
  23. odf:
  24. ln -s ../odf