swig deprecated BOTH in favor of INOUT
[comedilib.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=3
10
11 DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15         CFLAGS += -O0
16 endif
17 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18         INSTALL_PROGRAM += -s
19 endif
20
21 build: build-stamp
22 build-stamp:
23         dh_testdir
24
25         ./configure \
26                 --host=$(DEB_HOST_GNU_TYPE) \
27                 --build=$(DEB_BUILD_GNU_TYPE) \
28                 --prefix=/usr \
29                 --mandir=\$${prefix}/share/man \
30                 --datadir=\$${prefix}/share/doc/ \
31                 --sysconfdir=/etc \
32                 --localstatedir=/var/lib/libcomedi0 \
33                 --disable-dependency-tracking
34
35         $(MAKE)
36
37         touch build-stamp
38
39 clean:
40         dh_testdir
41         dh_testroot
42         rm -f build-stamp
43
44         -$(MAKE) distclean
45
46         dh_clean
47
48 install: build
49         dh_testdir
50         dh_testroot
51         dh_clean -k
52         dh_installdirs
53
54         $(MAKE) install prefix=`pwd`/debian/tmp/usr \
55                 pkgdatadir=`pwd`/debian/tmp/usr/share/doc/libcomedi0 \
56                 sysconfdir=`pwd`/debian/tmp/etc \
57                 localstatedir=`pwd`/debian/tmp/var
58         
59         cd debian/tmp/usr/share/doc && ln -s libcomedi0 libcomedi-dev
60
61 binary-indep: build install
62
63 binary-arch: build install
64 #       dh_testversion
65         dh_testdir
66         dh_testroot
67         #
68         # build libcomedi${major} package by moving files from comedilib-dev
69         #
70         dh_movefiles
71
72 #       dh_installdebconf       
73         dh_installdocs
74         dh_installexamples
75         dh_installmenu
76 #       dh_installemacsen
77 #       dh_installpam
78 #       dh_installinit
79         dh_installcron
80
81         dh_installinfo
82 #       dh_undocumented
83         dh_installchangelogs 
84         dh_link
85         dh_strip
86         dh_compress
87         dh_fixperms
88         dh_makeshlibs
89         dh_installdeb
90 #       dh_perl
91         dh_shlibdeps -l`pwd`/debian/tmp/usr/lib/
92         dh_gencontrol
93         dh_md5sums
94         dh_builddeb
95
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install