check if connection is alive
[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 -r $(CURDIR)/icons $(PREFIX)/usr/share/$(PACKAGE)/
32
33 binary-indep: build install
34         dh_testdir
35         dh_testroot
36         dh_installchangelogs
37         dh_installdocs
38         #dh_installmenu
39         #dh_python
40         dh_compress
41         dh_fixperms
42         dh_installdeb
43         #dh_shlibdeps
44         dh_gencontrol
45         dh_md5sums
46         dh_builddeb
47
48 binary-arch: build install
49
50 binary: binary-indep binary-arch
51 .PHONY: build clean binary-indep binary-arch binary install