2 # Makefile for Debian dpkg-buildpackage(1)
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
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.
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.
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
20 # Uncomment this to turn on verbose mode.
23 # This is the debhelper compatibility version to use.
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)
32 #ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
35 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
39 config.status: configure
41 ./configure --prefix=/usr --sysconfdir=/etc \
42 --enable-shared --disable-static
44 build-arch: config.status build-arch-stamp
48 touch build-arch-stamp
56 # Do not: -$(MAKE) distclean
57 # as we are run in clean distribution archive by AutoGen.pm
65 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-strip
68 # Build architecture-dependent files here.
69 binary-arch: build install
72 # dh_installdebconf -a
76 # dh_installchangelogs ChangeLog -a
88 .PHONY: build clean binary-arch binary install