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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
#! /usr/bin/make -f
# -*- no_mode -*-
# Made with the aid of dh_make, by Craig Small
# debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export HASKELL98=yes
version := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
# don't mess with this!
tmpdir := `pwd`/debian/tmp
docdir = /usr/share/doc/happy
manpages = happy/doc/happy.1
# grrr, this changes every now and then :(
sgmldocindex := book1.html
CONFIGURE_OPTS = --prefix=/usr
include debian/rules.local
%: %.in
sed -e "s%@DOCDIR@%$(docdir)%g;s%@VERSION@%$(version)%g;s%@LIBDIR@%/usr/lib/happy-$(version)%g" $< > $@
boot-stamp: config.status
dh_testdir
$(MAKE) boot
touch boot-stamp
build: build-stamp $(manpages)
build-stamp: config.status boot-stamp
dh_testdir
$(MAKE) all
$(MAKE) -C happy/doc ps html
find happy/examples -name CVS -prune -o -type f -a -print0 | xargs -0r chmod a-x
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp boot-stamp install-stamp
$(RM) build-stamp install-stamp stage1-stamp docs-stamp boot-stamp
# DO NOT INTERRUPT THIS TARGET!
# RESULT WOULD BE A PARTIAL CLEAN WHICH PERHAPS CAN BE
# RESOLVED BY: `debian/rules patch config.status clean'
# only works, if still configured
if test -f mk/config.mk; then \
$(MAKE) -k maintainer-clean; \
fi
# removing autoconf residue
for i in __food__ `find . -name configure.in`; do \
case $$i in \
*/configure.in) \
(cd `dirname $$i`; \
$(RM) configure config.status config.log config.cache \
) \
;; \
esac \
done
-find . -name '.depend.bak' -print0 | xargs -0r rm -f
$(MAKE) -f debian/rules unpatch
-$(RM) $(manpages)
-$(RM) -r configure config.status config.log config.cache mk/config.mk mk/config.h mk/stamp-h
-$(RM) -r fptools
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) -C happy install prefix=$(tmpdir)/usr
cp -a happy/doc/*.sgml $(tmpdir)/$(docdir)/sgml/
cp -a happy/doc/*.dvi $(tmpdir)/$(docdir)/dvi/
cp -a happy/doc/*.ps $(tmpdir)/$(docdir)/ps/
cp -a happy/doc/happy/* $(tmpdir)/$(docdir)/html/
ln -s $(sgmldocindex) $(tmpdir)/$(docdir)/html/index.html
-cp happy/examples/* $(tmpdir)/$(docdir)/examples/
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installmanpages
dh_undocumented
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|