Parser/Composer library for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
929 B

  1. PYTHON=python3.3
  2. .PHONY: docs test_docs clean dist test register deploy
  3. docs:
  4. $(MAKE) -C docs
  5. zip -j docs.zip docs/*.html docs/format.css LICENSE.txt
  6. deploy: dist
  7. rm -f pyPEG2.tar.gz pyPEG2-*.tar.gz
  8. ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1` pyPEG2.tar.gz
  9. ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1`
  10. scp docs/*.html docs/format.css pyPEG2.tar.gz pyPEG2-*.tar.gz *.txt samples/* dragon:fdik.org/pyPEG2/
  11. make register
  12. register:
  13. $(PYTHON) setup.py check
  14. $(PYTHON) setup.py register sdist upload
  15. test_docs:
  16. $(MAKE) -C docs test
  17. clean:
  18. $(MAKE) -C docs clean
  19. rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz pyPEG2-*.tar.gz
  20. dist: docs
  21. $(PYTHON) setup.py sdist
  22. test:
  23. PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_pyPEG2.py
  24. PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_xmlast.py
  25. PYTHONPATH=`pwd` $(PYTHON) samples/sample1.py
  26. PYTHONPATH=`pwd` $(PYTHON) samples/sample2.py
  27. install: dist
  28. $(PYTHON) setup.py install --user