blob: 4ffeca4ab016efde955ba2e39f10a36869977d6e (
plain) (
blame)
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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# $Id: rules,v 1.16 2005/12/01 13:45:35 mquinson Exp $
# Import Common Debian Build System (CDBS).
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
# Here is a badly nammed changelog file
DEB_INSTALL_CHANGELOGS_ALL = quilt.changes
# installing under debian/tmp...
DEB_MAKE_ENVVARS := BUILD_ROOT=$(CURDIR)/debian/tmp LC_ALL=C
# ... and moving it to the right dir using dh_install
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
# force awk to be gawk, since mawk causes trouble
# also specify the full path to sendmail, as requested by policy
DEB_CONFIGURE_EXTRA_FLAGS := --with-awk=/usr/bin/gawk --with-mta=/usr/sbin/sendmail
# distribute a text version of the doc for fool souls
common-build-arch::
mkdir doc/tmp || true
cd doc/tmp; LC_ALL=C hevea ../main.tex ; LC_ALL=C hevea ../main.tex; LC_ALL=C hevea ../main.tex
cp doc/tmp/main.html doc/quilt.html
LC_ALL=C perl -e '$$/ = undef; $$f=<>; $$f =~ s|<A[^>]*?HREF="[^"]*#[^"]*">(.*?)</A>|$$1|msg; print $$f;' < doc/tmp/main.html > doc/tmp/tmp.html
LC_ALL=C lynx doc/tmp/tmp.html -dump > doc/quilt.txt
clean::
rm -rf doc/quilt.txt doc/quilt.html doc/tmp
|