| 1 |
#!/usr/bin/make -f
|
| 2 |
# -*- makefile -*-
|
| 3 |
#
|
| 4 |
# debian package by Alessandro Amici 2002-2003.
|
| 5 |
# Based on: GNU copyright 1997 to 1999 by Joey Hess.
|
| 6 |
|
| 7 |
# Uncomment this to turn on verbose mode.
|
| 8 |
#export DH_VERBOSE=1
|
| 9 |
|
| 10 |
export PKGNAME=libgdal1-1.5.0-grass
|
| 11 |
|
| 12 |
config.status:
|
| 13 |
dh_testdir
|
| 14 |
|
| 15 |
./configure --prefix=/usr --with-grass=/usr/lib/grass --with-autoload=/usr/lib/gdalplugins
|
| 16 |
|
| 17 |
build: build-stamp
|
| 18 |
build-stamp: config.status
|
| 19 |
dh_testdir
|
| 20 |
|
| 21 |
$(MAKE)
|
| 22 |
|
| 23 |
touch build-stamp
|
| 24 |
|
| 25 |
clean:
|
| 26 |
|
| 27 |
dh_testdir
|
| 28 |
dh_testroot
|
| 29 |
|
| 30 |
[ ! -f $(CURDIR)/Makefile ] || $(MAKE) distclean
|
| 31 |
|
| 32 |
dh_clean build-stamp configure-stamp
|
| 33 |
|
| 34 |
install: build
|
| 35 |
dh_testdir
|
| 36 |
dh_testroot
|
| 37 |
dh_clean -k
|
| 38 |
dh_installdirs
|
| 39 |
|
| 40 |
$(MAKE) install AUTOLOAD_DIR=$(CURDIR)/debian/$(PKGNAME)/usr/lib/gdalplugins \
|
| 41 |
GRASSTABLES_DIR=$(CURDIR)/debian/$(PKGNAME)/usr/share/gdal/grass
|
| 42 |
|
| 43 |
binary-indep: build install
|
| 44 |
# Do nothing
|
| 45 |
|
| 46 |
binary-arch: build install
|
| 47 |
dh_testdir
|
| 48 |
dh_testroot
|
| 49 |
dh_installdocs
|
| 50 |
dh_installchangelogs
|
| 51 |
dh_link
|
| 52 |
dh_strip
|
| 53 |
dh_compress
|
| 54 |
dh_fixperms
|
| 55 |
dh_makeshlibs
|
| 56 |
dh_installdeb
|
| 57 |
dh_shlibdeps -l.
|
| 58 |
dh_gencontrol
|
| 59 |
dh_md5sums
|
| 60 |
dh_builddeb
|
| 61 |
|
| 62 |
binary: binary-arch binary-indep
|
| 63 |
.PHONY: build clean binary-arch binary-indep binary install
|