3 # Make sure perl is defined, but allow overriding from the command line.
6 builddir := $(shell pwd)/debian/htag
7 pmdir := $(shell $(PERL) -MConfig -e 'if (defined($$Config{installvendorlib})) { print $$Config{installvendorlib} } else { print $$Config{installprivlib} }')
15 binary-indep: binary-indep-stamp
16 binary-indep-stamp: install
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/*
34 touch binary-indep-stamp
39 dh_clean install-stamp binary-indep-stamp htag.1
41 install: install-stamp
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