renatofilho@905: #!/usr/bin/make -f
renatofilho@905: # -*- makefile -*-
renatofilho@905: 
renatofilho@905: # Uncomment this to turn on verbose mode.
renatofilho@905: #export DH_VERBOSE=1
renatofilho@905: 
renatofilho@905: PYVER=2.5
renatofilho@905: PYTHON=python$(PYVER)
renatofilho@905: 
renatofilho@905: PREFIX=debian/tmp
renatofilho@905: 
renatofilho@905: build: build-stamp
renatofilho@905: 
renatofilho@905: build-stamp:
renatofilho@905: 	touch build-stamp
renatofilho@905: 
renatofilho@905: clean:
renatofilho@905: 	dh_testdir
renatofilho@905: 	dh_testroot
renatofilho@905: 	rm -f build-stamp
renatofilho@905: 	dh_clean
renatofilho@905: 
renatofilho@905: install: build
renatofilho@905: 	dh_testdir
renatofilho@905: 	dh_testroot
renatofilho@905: 	dh_installdirs
renatofilho@905: 	dh_clean -k
renatofilho@905: 
renatofilho@905: 	@rm -rf build
renatofilho@905: 	@$(PYTHON) setup.py install --prefix=$(PREFIX)/usr --no-compile --install-purelib=$(PREFIX)/usr/share/gms
renatofilho@905: 	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/init.d/gmsd  debian/$(cdbs_curpkg)/etc/init.d/gmsd
renatofilho@905: 	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/gms/server.conf  debian/$(cdbs_curpkg)/etc/gms/server.conf
renatofilho@905: 
renatofilho@905: 	dh_install
renatofilho@905: 
renatofilho@905: # Build architecture-independent files here.
renatofilho@905: binary-indep: build install
renatofilho@905: 	dh_testdir
renatofilho@905: 	dh_testroot
renatofilho@905: 	dh_installchangelogs
renatofilho@905: 	dh_installdocs
renatofilho@905: 	dh_strip
renatofilho@905: 	dh_compress
renatofilho@905: 	dh_fixperms
renatofilho@905: 	dh_installdeb
renatofilho@905: 	dh_gencontrol
renatofilho@905: 	dh_md5sums
renatofilho@905: 	dh_builddeb
renatofilho@905: 
renatofilho@905: binary: binary-indep
renatofilho@905: .PHONY: clean binary-indep binary install
renatofilho@905: