remove suidregister
[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=1
10
11 # shared library versions, option 1
12 include version
13 #version=0.7.8
14 major=0
15 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
16 #version=`ls lib/lib*.so.* | \
17 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
18 #major=`ls lib/lib*.so.* | \
19 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
20
21 build: build-stamp
22 build-stamp:
23         dh_testdir
24
25         
26         # Add here commands to compile the package.
27         $(MAKE)
28
29         touch build-stamp
30
31 clean:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp
35
36         # Add here commands to clean up after the build process.
37         -$(MAKE) distclean
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         $(MAKE) install_debian DESTDIR=`pwd`/debian/tmp
49         #(cd debian/tmp;mv usr/doc/libcomedi usr/share/doc/libcomedi-dev;rmdir usr/doc)
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_testversion
59         dh_testdir
60         dh_testroot
61         #
62         # build libcomedi${major} package by moving files from comedilib-dev
63         #
64         dh_movefiles -plibcomedi$(major)                \
65                 usr/lib/libcomedi.so.$(version)         \
66                 usr/lib/libcomedi.so.$(major)           \
67                 usr/sbin/comedi_config                  \
68                 usr/bin/comedi_calibrate
69
70 #       dh_installdebconf       
71         dh_installdocs
72         dh_installexamples
73         dh_installmenu
74 #       dh_installemacsen
75 #       dh_installpam
76 #       dh_installinit
77         dh_installcron
78         dh_installmanpages -plibcomedi0
79
80         (cd debian/tmp/usr/share && rm -rf man)
81
82         dh_installinfo
83 #       dh_undocumented
84         dh_installchangelogs 
85         dh_link
86         dh_strip
87         dh_compress
88         dh_fixperms
89         dh_makeshlibs
90         dh_installdeb
91 #       dh_perl
92         dh_shlibdeps
93         dh_gencontrol
94         dh_md5sums
95         dh_builddeb
96
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install