prefix=/usr

MANTARGET=	"/usr/share/man/man1"

tryton_modules=/home/lfm/tryton/tryton_2_4/server/trytond-2.4.1/trytond/modules

install:
	cp -a health/ $(tryton_modules)
	cp -a health_* $(tryton_modules) 

install_man:
	install -m 644 health/man/gnuhealth.1 $(MANTARGET) 

update_version:
	perl -p -i -e "s/'version'.*$$/'version': '`cat version`',/" */__tryton__.py

MODULES=`ls -d health*`
release:
	for module in $(MODULES); do \
		cd $(CURDIR)/$${module}; \
		python setup.py register sdist upload; \
	done
