#
# pysms makefile
# based on the makefile from the project gpodder
# copyright 2005-2007 andreas maechler <amaechler@gmx.ch>
# released under the gnu gpl
#
##########################################################################

DESTDIR ?= /
BINFILE=bin/pysms

##########################################################################

all: help

help:
	@echo 'make test            run pysms in local directory'
	@echo 'make release         create source tarball in "dist/"'
	@echo 'make install         install pysms into "/usr/"'
	@echo 'make clean           remove generated + temp + *.pyc files'
	@echo 'make distclean       do a "make clean" + remove "dist/"'

##########################################################################

test:
	$(BINFILE) --debug

release: distclean
	python setup.py sdist

install:
	python setup.py install --root=$(DESTDIR)

##########################################################################

clean:
	python setup.py clean
	rm -f src/pysms/*.pyc src/pysms/*.bak MANIFEST PKG-INFO data/pysms.gladep{,.bak} data/pysms.glade.bak
	rm -rf build

debclean:
	fakeroot debian/rules clean

distclean: clean
	rm -rf dist
 
##########################################################################

.PHONY: all test release install clean distclean help

##########################################################################


