Fixed shared library filename refrence in 'libntfs.conf'.
[ntfsprogs-gnomevfs.git] / debian / rules
1 #!/usr/bin/make -f
2 # Makefile for Debian dpkg-buildpackage(1)
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 # Uncomment this to turn on verbose mode. 
20 #export DH_VERBOSE=1
21
22 # This is the debhelper compatibility version to use.
23 export DH_COMPAT=3
24
25 # These are used for cross-compiling and for saving the configure script
26 # from having to guess our platform (since we know it already)
27 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
28 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
29
30
31 #ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
32 #       CFLAGS += -g
33 #endif
34 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
35         INSTALL_PROGRAM += -s
36 endif
37
38 config.status: configure
39         dh_testdir
40         ./configure --prefix=/usr --sysconfdir=/etc \
41                 --enable-shared --disable-static
42
43 build-arch:  config.status build-arch-stamp
44 build-arch-stamp:
45         dh_testdir
46         $(MAKE)
47         touch build-arch-stamp
48
49 build: build-arch
50
51 clean:
52         dh_testdir
53         dh_testroot
54         rm -f build-stamp 
55         # Do not: -$(MAKE) distclean
56         # as we are run in clean distribution archive by AutoGen.pm
57         dh_clean
58
59 install: DH_OPTIONS=
60 install: build
61         dh_testdir
62         dh_testroot
63         dh_clean -k
64         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-strip
65         dh_movefiles
66
67 # Build architecture-dependent files here.
68 binary-arch: build install
69         dh_testdir -a
70         dh_testroot -a
71 #       dh_installdebconf -a
72         dh_installdocs -a
73 #       dh_installinit -a
74 #       dh_installman -a
75 #       dh_installchangelogs ChangeLog -a
76         dh_link -a
77         dh_compress -a
78         dh_fixperms -a
79         dh_makeshlibs -a
80         dh_installdeb -a
81         dh_shlibdeps -a
82         dh_gencontrol -a
83         dh_md5sums -a
84         dh_builddeb -a
85
86 binary: binary-arch
87 .PHONY: build clean binary-arch binary install