Initial commit for debian packaging
[pyiw] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6
7 CFLAGS = -Wall -g
8
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10         CFLAGS += -O0
11 else
12         CFLAGS += -O2
13 endif
14
15 configure: configure-stamp
16 configure-stamp:
17         dh_testdir
18
19         touch configure-stamp
20
21 build: build-stamp
22
23 build-stamp: configure-stamp 
24         dh_testdir
25
26         # Add here commands to compile the package.
27         make dynamic
28
29         touch build-stamp
30
31 clean:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp configure-stamp
35
36         # Add here commands to clean up after the build process.
37         -$(MAKE) clean
38
39         dh_clean 
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k 
45 #       dh_installdirs
46
47         # Add here commands to install the package into debian/tmp
48         mkdir -p $(CURDIR)/debian/tmp/usr/lib/python2.6/dist-packages
49         cp pyiw.so $(CURDIR)/debian/tmp/usr/lib/python2.6/dist-packages
50
51
52 # Build architecture-independent files here.
53 binary-indep: build install
54 # We have nothing to do by default.
55
56 # Build architecture-dependent files here.
57 binary-arch: build install
58         dh_testdir
59         dh_testroot
60         dh_installchangelogs 
61 #       dh_installdocs
62 #       dh_installexamples
63 #       dh_install
64 #       dh_installmenu
65 #       dh_installdebconf       
66 #       dh_installlogrotate
67 #       dh_installemacsen
68 #       dh_installpam
69 #       dh_installmime
70 #       dh_installinit
71 #       dh_installcron
72 #       dh_installinfo
73 #       dh_installman
74         dh_link
75         dh_strip
76         dh_compress
77         dh_fixperms
78 #       dh_perl
79 #       dh_python
80 #       dh_makeshlibs
81         dh_installdeb
82         dh_shlibdeps
83         dh_gencontrol
84         dh_md5sums
85         dh_builddeb
86
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install configure
89