#-*- coding: utf-8 -*- #:Progetto: SoL #:Creato: sab 08 nov 2008 21:16:39 CET #:Autore: Lele Gaifax #:Licenza: GNU General Public License version 3 or later # .PHONY: catalog clean dist distclean egg help html install .PHONY: messages minimize publish serve test DARCS = darcs MASTER = darcs.arstecnica.it:/srv/darcs/our/sol PASTER = paster PYTHON = python RSYNC = rsync -avz YUIC = java -jar /usr/local/bin/yuicompressor-2.4.2.jar help: @echo "Please use \`make ' where is one of" @echo "catalog[*] to compile the i18n catalog" @echo "clean[*] remove regenerable contents and backup files" @echo "dist to prepare for distribution packaging (runs [*] targets)" @echo "distclean remove also development.db" @echo "egg to create an EGG packaging (runs [*] targets)" @echo "html[*] to build the HTML documentation" @echo "install to install the package" @echo "messages to extract and update the i18n catalog" @echo "minimize[*] to minimize JS and CSS" @echo "publish push changes, egg and manual to the master site" @echo "serve start the development service" @echo "test to run the test suites" install: $(PYTHON) setup.py install dist: clean catalog html minimize egg: dist $(PYTHON) setup.py bdist_egg catalog: $(PYTHON) setup.py compile_catalog messages: clean $(PYTHON) setup.py extract_messages $(PYTHON) setup.py update_catalog publish: $(DARCS) push $(MASTER) $(RSYNC) dist/ $(MASTER)/dist/ $(RSYNC) sol/public/manual/ $(MASTER)/sol/public/manual/ html: $(MAKE) -C docs html rm -rf sol/public/manual && mv docs/.build/html sol/public/manual $(MAKE) -C docs clean minimize: $(PYTHON) sol/config/scripts.py "$(YUIC)" clean: rm -rf build sol/public/manual rm -f sol/public/*-min.js sol/public/*-min.css rm -f $(shell find . -name '*~') darcs-amend-record-* distclean: clean rm -f development.db development.db: $(PASTER) setup-app development.ini $(PASTER) restore development.ini serve: development.db $(PASTER) serve development.ini test: $(PYTHON) setup.py nosetests lint: pylint --rcfile pylintrc sol