File: rules

package info (click to toggle)
vim-latexsuite 1%3A1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,424 kB
  • sloc: xml: 5,159; python: 906; makefile: 92; perl: 59; sh: 14
file content (37 lines) | stat: -rwxr-xr-x 898 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

DESTDIR=$(CURDIR)/debian/vim-latexsuite
ADDONSDIR=/usr/share/vim/addons

%:
	dh $@ --with=python3

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 -9n
	# remove unnecessary files
	rm -rf $(DESTDIR)/usr/local/share/appdata

override_dh_install:
	dh_install	
	# generate file list for vim addons manager
	#
	( cd $(DESTDIR)$(ADDONSDIR) && find -type f ) | sed 's#./#  - #' | LC_ALL=C sort  >> $(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 -9n < $< > $@

.PHONY: gzip-doc fix-perm