File: rules

package info (click to toggle)
libhtml-lint-perl 2.06%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 256 kB
  • ctags: 86
  • sloc: perl: 795; sh: 23; makefile: 19
file content (39 lines) | stat: -rwxr-xr-x 1,553 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003-2008 Jonas Smedegaard <dr@jones.dk>

# See debian/README.cdbs-tweaks for info on local overrides
include debian/cdbs/1/rules/upstream-tarball.mk
include debian/cdbs/1/rules/copyright-check.mk
include debian/cdbs/1/rules/buildinfo.mk
include /usr/share/cdbs/1/rules/debhelper.mk
# Put perlmodule.mk after debhelper.mk to dh_clean temp files not in MANIFEST
include /usr/share/cdbs/1/class/perlmodule.mk

DEB_UPSTREAM_PACKAGE = HTML-Lint
DEB_UPSTREAM_URL = http://www.cpan.org/modules/by-module/HTML
DEB_UPSTREAM_TARBALL_MD5 = 13e14932f7b63db5e5dc54f608148c34

DEB_INSTALL_MANPAGES_weblint-perl := debian/weblint.1

common-build-indep::
	txt2man -p debian/weblint.txt > debian/weblint.1

common-binary-post-install-indep::
	mv debian/libhtml-lint-perl/usr/bin debian/weblint-perl/usr

clean::
	rm -f debian/weblint.1

# Needed both by upstream build process and at runtime
#TODO: Automatically include these to debian/control Depends: line
dependencies = libhtml-parser-perl (>= 3.20), libhtml-tagset-perl (>= 3.03)

# Needed by upstream build process
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(dependencies), libtest-pod-perl (>= 0.95), libtest-pod-coverage-perl (>= 1.04)

# Needed by pur packaging routines
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), txt2man

# Fix double cdbs build-dependencies
CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\)) *,* */, /g' -e 's/^ *, *//' -e 's/ *, *$$//')