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
|
#!/usr/bin/make -f
# -*- makefile -*-
DESTDIR=$(CURDIR)/debian/vim-latexsuite
ADDONSDIR=/usr/share/vim/addons
%:
dh $@
override_dh_auto_build:
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(DESTDIR) BINDIR=/usr/share/doc/vim-latexsuite/contrib VIMDIR=$(ADDONSDIR)
# gzip doc files
find $(DESTDIR)$(ADDONSDIR)/doc -type f -print0 | xargs -0 gzip -9
override_dh_install:
dh_install
# generate file list for vim addons manager
#
( cd $(DESTDIR)$(ADDONSDIR) && find -type f ) | sed 's#./# - #' >> $(DESTDIR)/usr/share/vim/registry/vim-latexsuite.yaml
fix-perm:
find $(DIRS) doc -type f | xargs chmod a-x
chmod a+x ftplugin/latex-suite/outline.py \
debian/bug/vim-latexsuite/script
gzip-doc: $(DOCFILES)
%.txt.gz: %.txt
gzip -9 < $< > $@
.PHONY: gzip-doc fix-perm
|