Source

DisPass / Makefile

MAN_PATH	= /usr/share/man/man1
PYTHON_EXEC	= python
PIP_EXEC	= pip
VERSION		= 0.1a8

make:
	@echo "make install   Build and then install via pip and move manpage"
	@echo "make uninstall Clean build files and uninstall via pip"
	@echo
	@echo "Developer commands"
	@echo "make doc       Build html documentation with Sphinx"
	@echo "make man       Build manpage with Sphinx"
	@echo "make dist      Build python source archive file"
	@echo "make clean     Clean program and doc build files"

rm_pyc:
	find . -name "*.pyc" | xargs /bin/rm -f

doc_clean: rm_pyc
	cd sphinx-doc/en/; make clean
	#cd sphinx-doc/nl/; make clean

doc: doc_clean
	cd sphinx-doc/en/; make html
	cd sphinx-doc/nl/; make html
	rm -rf doc/html/$(VERSION)
	mkdir -p doc/html/$(VERSION)
	mv sphinx-doc/en/_build/html doc/html/$(VERSION)/en
	mv sphinx-doc/nl/_build/html doc/html/$(VERSION)/nl
	make doc_clean

man: rm_pyc
	cd sphinx-doc/man-en/; make clean
	cd sphinx-doc/man-en/; make man
	mv sphinx-doc/man-en/_build/man/dispass.1 .
	cd sphinx-doc/man-en/; make clean

dist: rm_pyc
	$(PYTHON_EXEC) setup.py sdist

install: dist
	$(PIP_EXEC) install --upgrade dist/DisPass-$(VERSION).tar.gz
	gzip -c dispass.1 > dispass.1.gz
	mv dispass.1.gz $(MAN_PATH)/
	make clean

uninstall: clean
	$(PIP_EXEC) uninstall dispass

clean: doc_clean
	rm -f MANIFEST dispass.1.gz
	rm -rf dist doc

# vim: set noet ts=8 sw=8 sts=8:
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.