* added maemo icons
[xkcdha] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 PACKAGE := $(shell head -1 $(CURDIR)/debian/changelog | sed 's/^\([^ ]\+\) .*/\1/')
7 PREFIX := $(CURDIR)/debian/$(PACKAGE)
8 PYTHON := python2.5
9
10 build: build-stamp
11
12 build-stamp: 
13         dh_testdir
14         python setup.py build
15         touch $@
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp
21         rm -f *.pyc
22         dh_clean 
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k 
28         dh_installdirs
29         cp $(CURDIR)/$(PACKAGE).py $(PREFIX)/usr/lib/hildon-desktop/
30         cp $(CURDIR)/$(PACKAGE).desktop $(PREFIX)/usr/share/applications/hildon-home/
31         cp $(CURDIR)/$(PACKAGE).app.desktop $(PREFIX)/usr/share/applications/hildon/$(PACKAGE).desktop
32         cp -r $(CURDIR)/icons $(PREFIX)/usr/share/$(PACKAGE)/
33         cp -r $(CURDIR)/maemo-icons/* $(PREFIX)/usr/share/icons/
34         cp -r $(CURDIR)/img $(PREFIX)/usr/share/$(PACKAGE)/
35         dh_link usr/lib/hildon-desktop/$(PACKAGE).py usr/bin/$(PACKAGE)
36
37 binary-indep: build install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs
41         dh_installdocs
42         #dh_installmenu
43         #dh_python
44         dh_compress
45         dh_fixperms
46         dh_installdeb
47         #dh_shlibdeps
48         dh_gencontrol
49         dh_md5sums
50         dh_builddeb
51
52 binary-arch: build install
53
54 binary: binary-indep binary-arch
55 .PHONY: build clean binary-indep binary-arch binary install