File: rules

package info (click to toggle)
xmlformat 1.04-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,012 kB
  • sloc: xml: 2,289; perl: 996; ruby: 831; makefile: 109; sh: 65
file content (34 lines) | stat: -rwxr-xr-x 917 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ --parallel

pkg_perl = xmlformat-perl
pkg_ruby = xmlformat-ruby
pkg_doc  = xmlformat-doc

override_dh_install:
	dh_install -p$(pkg_perl) xmlformat.pl usr/bin
	dh_install -p$(pkg_ruby) xmlformat.rb usr/bin
	# rename:
	mv $(CURDIR)/debian/xmlformat-perl/usr/bin/xmlformat.pl $(CURDIR)/debian/xmlformat-perl/usr/bin/xmlformat
	mv $(CURDIR)/debian/xmlformat-ruby/usr/bin/xmlformat.rb $(CURDIR)/debian/xmlformat-ruby/usr/bin/xmlformat

override_dh_installman:
	dh_installman -p$(pkg_perl) debian/xmlformat.1
	dh_installman -p$(pkg_ruby) debian/xmlformat.1

override_dh_auto_build-indep:
	$(MAKE) dist-prep

override_dh_compress:
	dh_compress -X.pdf

# ruby and perl use the same interface:
debian/xmlformat.1: debian/xmlformat.1.in
	help2man --include=debian/xmlformat.1.in \
		--output=$@ --no-info xmlformat

get-orig-source:
	uscan --verbose --force-download --rename