X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=1127c271f40fc52900a1cf357aab573041b04a60;hb=34ae027455851b25b4cc0b524b523cb67aa00ef0;hp=0000000000000000000000000000000000000000;hpb=40d751255b6f793fc05d5af8f8a02c75221fce96;p=xkcdha diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1127c27 --- /dev/null +++ b/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGE := $(shell head -1 $(CURDIR)/debian/changelog | sed 's/^\([^ ]\+\) .*/\1/') +PREFIX := $(CURDIR)/debian/$(PACKAGE) +PYTHON := python2.5 + +build: build-stamp + +build-stamp: + dh_testdir + python setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -f *.pyc + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cp $(CURDIR)/$(PACKAGE).py $(PREFIX)/usr/lib/hildon-desktop/ + cp $(CURDIR)/$(PACKAGE).desktop $(PREFIX)/usr/share/applications/hildon-home/ + cp -r $(CURDIR)/icons $(PREFIX)/usr/share/$(PACKAGE)/ + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + #dh_installmenu + #dh_python + dh_compress + dh_fixperms + dh_installdeb + #dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install