6 # Make sure perl is defined, but allow overriding from the command line.
9 builddir := $(shell pwd)/debian/htag
10 pmdir := $(shell $(PERL) -MConfig -e 'if (defined($$Config{installvendorlib})) { print $$Config{installvendorlib} } else { print $$Config{installprivlib} }')
16 binary-indep: binary-indep-stamp
17 binary-indep-stamp: install
20 dh_installdocs docs/AUTHORS docs/BUGS docs/INSTALL \
21 docs/MACRO_DESCRIPTION docs/README \
22 docs/README.Multiple_Configs docs/TODO docs/TROUBLESHOOTING \
23 docs/URL docs/WRITING_SIGS
24 dh_installchangelogs docs/Changelog.htag docs/Changelog.htagplugin
25 dh_installexamples docs/sample-config/*
35 touch binary-indep-stamp
40 dh_clean install-stamp binary-indep-stamp htag.1
42 install: install-stamp
45 pod2man htag.pl > htag.1
46 install -d $(builddir)/usr/bin
47 install -d $(builddir)/usr/share/htag/plugins
48 install -d $(builddir)/$(pmdir)
49 install -m 755 htag.pl $(builddir)/usr/bin/htag
50 install -m 644 HtagPlugin/HtagPlugin.pm $(builddir)/$(pmdir)
51 install -m 755 plugins/* $(builddir)/usr/share/htag/plugins