3 VER := $(shell head -1 debian/changelog | sed -e 's/^.*(//' -e 's/).*$$//')
4 tmp := $(CURDIR)/debian/lintian
5 usl := $(tmp)/usr/share/lintian
6 neededfiles := debian/rules frontend/lintian
7 allchecks := $(wildcard checks/*)
8 allcollect := $(wildcard collection/*)
9 tagfiles := $(wildcard testset/tags.*)
12 runtests: $(neededfiles) $(allchecks) $(allcollect) $(tagfiles)
13 @echo .... running tests ....
14 [ -d debian/tests ] || mkdir debian/tests
15 LINTIAN_ROOT="" /usr/bin/perl testset/runtests -k testset debian/tests $(onlyrun)
19 @echo .... running build ....
21 cd doc && LANG=C debiandoc2html lintian.sgml
22 cd doc && LANG=C debiandoc2text lintian.sgml
25 @echo .... cleaning ....
29 rm -rf doc/lintian.html/ doc/lintian.txt
31 find -name "*.py?" -print0 | xargs -0r rm
32 dh_clean -Xtestset/diffs/binary.c~
34 binary-indep: $(neededfiles) build
35 @echo .... binary-indep ....
38 dh_clean -k -Xtestset/diffs/binary.c~
42 @echo .... install frontends ....
43 install -m 755 frontend/lintian $(tmp)/usr/bin/
44 sed -i 's/<VERSION>/$(VER)/' $(tmp)/usr/bin/lintian
45 install -m 755 frontend/lintian-info $(tmp)/usr/bin/
47 @echo .... install library files ....
48 find checks collection data lib unpack \
49 \( -path '*/CVS' -o -path '*/.svn' \) -prune -o -print \
52 @echo .... install documentation ....
56 @echo .... install manual pages ....
59 @echo .... install config file ....
60 install -m 644 doc/lintianrc.example $(tmp)/etc/lintianrc
62 @echo .... fix things up and build packages ....
72 binary: binary-indep binary-arch
74 .PHONY: build binary binary-arch binary-indep clean
75 .DELETE_ON_ERROR: runtests
76 include debian/rules.OSSO