1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#!/usr/bin/make -f
# debian/rules for nmh. GNU copyright 1998 by Philip Hands.
# inspired by Joey Hess' example from the debhelper package.
# Modified by Ruud de Rooij <ruud@debian.org>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build:
dh_testdir
RANLIB=: LORDER=echo TSORT=cat ./configure --prefix= \
--bindir='$${prefix}/usr/bin/mh' \
--sysconfdir='$${prefix}/etc/nmh' \
--libdir='$${prefix}/usr/lib/mh' \
--mandir='$${prefix}/usr/share/man' \
--with-editor=/usr/bin/sensible-editor \
--with-pager=/usr/bin/sensible-pager \
--enable-nmh-pop
$(MAKE) CFLAGS="-O2 -g -Wall" LDFLAGS=
touch build
clean:
dh_testdir
dh_testroot
-rm -f build
-make distclean
dh_clean
binary-indep: build
# nothing to do
binary-arch: build
dh_testversion 2.0.40
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
make install prefix=`pwd`/debian/tmp
dh_installdocs
dh_installexamples
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
# override nmh-provided mhn.defaults
install -p -m 644 debian/mhn.defaults debian/tmp/etc/nmh/mhn.defaults
dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: clean binary binary-arch binary-indep
|