Source

pyPEG / Makefile

PYTHON=python3.2

.PHONY: docs test_docs clean push dist test register deploy

docs:
	$(MAKE) -C docs
	zip -j docs.zip docs/*.html docs/format.css LICENSE.txt

deploy: dist
	rm -f pyPEG2.tar.gz pyPEG2-*.tar.gz
	ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1` pyPEG2.tar.gz
	ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1`
	scp docs/*.html docs/format.css pyPEG2.tar.gz pyPEG2-*.tar.gz *.txt samples/* dragon:fdik.org/pyPEG2/
	make register

register:
	$(PYTHON) setup.py check
	$(PYTHON) setup.py register

test_docs:
	$(MAKE) -C docs test

clean:
	$(MAKE) -C docs clean
	rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz pyPEG2-*.tar.gz

push:
	hg push ssh://hg@bitbucket.org/fdik/pyPEG

dist: docs
	$(PYTHON) setup.py sdist

test:
	PYTHONPATH=`pwd` $(PYTHON) pyPEG2/test/test_pyPEG2.py
	PYTHONPATH=`pwd` $(PYTHON) pyPEG2/test/test_xmlast.py
	PYTHONPATH=`pwd` $(PYTHON) samples/sample1.py
	PYTHONPATH=`pwd` $(PYTHON) samples/sample2.py

install: dist
	$(PYTHON) setup.py install --user
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.