#!/usr/bin/make -f # -*- makefile -*- TARGET_DIR=/opt/gispatcher/osaas-server build: build-stamp build-stamp: dh_testdir touch $@ (cd server && python test/runtests.py) clean: dh_testdir dh_testroot rm -f build-stamp dh_clean install: build dh_testdir dh_testroot # clean up the pyc-files find . -name "*.pyc" |xargs rm -rf # Files dh_install -Xtest server $(TARGET_DIR) # Create osaas-users-file install -d $(CURDIR)/debian/osaas-server/etc/osaas touch $(CURDIR)/debian/osaas-server/etc/osaas/osaas-users # Create osaas-config-file as a symlink ln -s $(TARGET_DIR)/server/demo-config.xml $(CURDIR)/debian/osaas-server/etc/osaas/osaas-config.xml # Docs dh_installchangelogs ChangeLog dh_installdocs README.txt # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdebconf dh_pysupport dh_installinit dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install