
# Default CGI directory.  To choose another directory, use:
#
#    sudo make cgi=/PATH/TO/CGI/DIRECTORY install
#
cgi = /usr/lib/cgi-bin

build:
	python setup.py build

install:
	$(MAKE) build
	sudo CGI_DIR=$(cgi) python setup.py install

dist:
	python setup.py sdist

clean:
	rm -fr build dist 

publish:
	python setup.py sdist upload

upload:
	$(MAKE) publish


.PHONY: install build dist clean publish upload
 
