|
| 1 | +#!/usr/bin/make -f |
| 2 | +# -*- makefile -*- |
| 3 | + |
| 4 | +# Uncomment this to turn on verbose mode. |
| 5 | +export DH_VERBOSE=1 |
| 6 | + |
| 7 | + |
| 8 | +# These are used for cross-compiling and for saving the configure script |
| 9 | +# from having to guess our platform (since we know it already) |
| 10 | +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 11 | +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 12 | + |
| 13 | + |
| 14 | +CFLAGS = -Wall -g |
| 15 | + |
| 16 | +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 17 | + CFLAGS += -O0 |
| 18 | +else |
| 19 | + CFLAGS += -O2 |
| 20 | +endif |
| 21 | + |
| 22 | +# shared library versions, option 1 |
| 23 | +version=2.0.5 |
| 24 | +major=2 |
| 25 | + |
| 26 | + |
| 27 | +config.status: configure |
| 28 | + dh_testdir |
| 29 | +# Add here commands to configure the package. |
| 30 | + ./configure --prefix=/usr --sysconfdir=/etc |
| 31 | + |
| 32 | +build: prepare build-stamp |
| 33 | +build-stamp: prepare config.status |
| 34 | + dh_testdir |
| 35 | +prepare: |
| 36 | + ./autogen.sh --prefix=/usr --sysconfdir=/etc |
| 37 | + |
| 38 | +# Add here commands to compile the package. |
| 39 | + $(MAKE) |
| 40 | +# check build |
| 41 | +# $(MAKE) check |
| 42 | + |
| 43 | + touch $@ |
| 44 | + |
| 45 | +clean: |
| 46 | + dh_testdir |
| 47 | + dh_testroot |
| 48 | + rm -f build-stamp |
| 49 | + |
| 50 | +# Add here commands to clean up after the build process. |
| 51 | +# -$(MAKE) clean |
| 52 | + dh_clean |
| 53 | + |
| 54 | +install: build |
| 55 | + dh_testdir |
| 56 | + dh_testroot |
| 57 | + dh_clean -k |
| 58 | + dh_installdirs |
| 59 | + |
| 60 | +# install the package |
| 61 | + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install |
| 62 | + |
| 63 | +# install documentation |
| 64 | + cd doc/; $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-doc; cd .. |
| 65 | + |
| 66 | + |
| 67 | +# Build architecture-independent files here. |
| 68 | +binary-indep: build install |
| 69 | +# We have nothing to do by default. |
| 70 | + |
| 71 | +# Build architecture-dependent files here. |
| 72 | +binary-arch: build install |
| 73 | + dh_testdir |
| 74 | + dh_testroot |
| 75 | + dh_installchangelogs ChangeLog |
| 76 | + dh_installdocs |
| 77 | +# dh_installexamples |
| 78 | + dh_install --list-missing --sourcedir=debian/tmp |
| 79 | +# dh_installmenu |
| 80 | +# dh_installdebconf |
| 81 | +# dh_installlogrotate |
| 82 | +# dh_installemacsen |
| 83 | +# dh_installpam |
| 84 | +# dh_installmime |
| 85 | +# dh_installinit |
| 86 | +# dh_installcron |
| 87 | +# dh_installinfo |
| 88 | + dh_installman |
| 89 | + dh_link |
| 90 | + dh_strip |
| 91 | + dh_compress |
| 92 | + dh_fixperms |
| 93 | +# dh_perl |
| 94 | +# dh_python |
| 95 | +# dh_makeshlibs |
| 96 | + dh_installdeb |
| 97 | + # dh_shlibdeps |
| 98 | + dh_gencontrol |
| 99 | + dh_md5sums |
| 100 | + dh_builddeb |
| 101 | + |
| 102 | +binary: binary-indep binary-arch |
| 103 | +.PHONY: build clean binary-indep binary-arch binary install |
0 commit comments