# Makefile
#
# This file is a part of Uptime package.
#

# __author__ = "Oleg Broytman <phd@phdru.name>"
# __copyright__ = "Copyright (C) 2003-2013 PhiloSoft Design"


.PHONY: all
all:
	compyleall
	compyleall-ptl


.PHONY: run
run:
	./run


.PHONY: distr
distr:
	./mk-distr

distr-%:
	./mk-distr "`echo $@ | sed s/^distr-//`"


.PHONY: clean
clean:
	find . \( -name '*.py[co]' -o -name '*.ptlc' \) -print | xargs rm -f
	rm -f uptime.db data/*.html data/uptime-*.tar.gz
