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
|
#!/usr/bin/make -f
MANPAGES=email2trac.1 delete_spam.1
DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
XP=xsltproc --nonet --novalid
%:
dh $@ --with python2
override_dh_auto_build: # don't compile run_email2trac
override_dh_clean:
dh_clean
rm -f $(MANPAGES) run_email2trac
override_dh_auto_install: $(MANPAGES)
# fake run_email2trac to ease install
touch run_email2trac
dh_auto_install
rm -f run_email2trac $(CURDIR)/debian/trac-email2trac/usr/bin/run_email2trac
override_dh_auto_clean:
# fake run_email2trac etc. to ease clean
touch run_email2trac email2trac.py delete_spam.py
dh_auto_clean
rm -f touch run_email2trac email2trac.py delete_spam.py
rm -f config.h stamp-h1
%.1: debian/%.dbk
$(XP) $(DB2MAN) $<
|