
# clean the file that run and test create
clean:
	@find . -name *.pyc -exec rm {} ';'
	@rm -fr _trial_temp
test:
	@trial -Rv compass/test
setup:
	@sqlite compass/db/compass.db < compass/storage/sqlite.sql
empty:
	@rm compass/db/compass.db
run_dis_server:
	@echo "Now start the gns dispatcher's server..."
	@twistd -d compass/db -l compass/db/compass.log -y gns_dispatcher_server.tac --pidfile compass.pid
stop_dis_server:
	@echo "Now stop the gns dispatcher's server..."
	@kill `cat compass/db/compass.pid`
