]> the.earth.li Git - htag.git/blob - debian/rules
Import Debian changes 0.0.23-2
[htag.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Make sure perl is defined, but allow overriding from the command line.
4 PERL ?= /usr/bin/perl
5
6 builddir := $(shell pwd)/debian/htag
7 pmdir := $(shell $(PERL) -MConfig -e 'if (defined($$Config{installvendorlib})) { print $$Config{installvendorlib} } else { print $$Config{installprivlib} }')
8
9 build:
10
11 binary: binary-indep
12
13 binary-arch: build
14
15 binary-indep: binary-indep-stamp
16 binary-indep-stamp: install
17         dh_testdir
18         dh_testroot
19         dh_installdocs docs/AUTHORS docs/BUGS docs/INSTALL \
20                 docs/MACRO_DESCRIPTION docs/README \
21                 docs/TODO docs/TROUBLESHOOTING \
22                 docs/URL docs/Changelog.htagplugin
23         dh_installchangelogs docs/Changelog.htag
24         dh_installexamples docs/sample-config/*
25         dh_installman htag.1
26         dh_fixperms
27         dh_installdeb
28         dh_perl
29         dh_strip
30         dh_shlibdeps
31         dh_compress
32         dh_gencontrol
33         dh_builddeb
34         touch binary-indep-stamp
35
36 clean:
37         dh_testdir
38         dh_testroot
39         dh_clean install-stamp binary-indep-stamp htag.1
40
41 install: install-stamp
42 install-stamp:
43         dh_testdir
44         pod2man htag.pl > htag.1
45         install -d $(builddir)/usr/bin
46         install -d $(builddir)/usr/share/htag/plugins
47         install -d $(builddir)/$(pmdir)
48         install -m 755 htag.pl $(builddir)/usr/bin/htag
49         install -m 644 HtagPlugin/HtagPlugin.pm $(builddir)/$(pmdir)
50         install -m 755 plugins/* $(builddir)/usr/share/htag/plugins
51         touch install-stamp