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