#!/usr/bin/make -f # Make sure perl is defined, but allow overriding from the command line. PERL ?= /usr/bin/perl builddir := $(shell pwd)/debian/htag pmdir := $(shell $(PERL) -MConfig -e 'if (defined($$Config{installvendorlib})) { print $$Config{installvendorlib} } else { print $$Config{installprivlib} }') build: binary: binary-indep binary-arch: build binary-indep: binary-indep-stamp binary-indep-stamp: install dh_testdir dh_testroot dh_installdocs docs/AUTHORS docs/BUGS \ docs/MACRO_DESCRIPTION docs/README \ docs/TODO docs/TROUBLESHOOTING \ docs/URL docs/Changelog.htagplugin dh_installchangelogs docs/Changelog.htag dh_installexamples docs/sample-config/* dh_installman htag.1 dh_fixperms dh_installdeb dh_perl dh_strip dh_shlibdeps dh_compress dh_gencontrol dh_builddeb touch binary-indep-stamp clean: dh_testdir dh_testroot dh_clean install-stamp binary-indep-stamp htag.1 install: install-stamp install-stamp: dh_testdir pod2man htag.pl > htag.1 install -d $(builddir)/usr/bin install -d $(builddir)/usr/share/htag/plugins install -d $(builddir)/$(pmdir) install -m 755 htag.pl $(builddir)/usr/bin/htag install -m 644 HtagPlugin/HtagPlugin.pm $(builddir)/$(pmdir) install -m 755 plugins/* $(builddir)/usr/share/htag/plugins touch install-stamp