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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/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
|