File: rules

package info (click to toggle)
vim-scripts 20210124.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,100 kB
  • sloc: perl: 420; xml: 95; makefile: 24
file content (32 lines) | stat: -rwxr-xr-x 879 bytes parent folder | download
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
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

common-build-indep:: debian/stamp-local-build
debian/stamp-local-build:: copyright dtd2vim.1 vimplate.1
	touch $@

common-binary-post-install-indep::
	# Rename to match the name specified in g:colors_name
	# This is provided by vim-solarized
	rm debian/vim-scripts/usr/share/vim-scripts/color_sampler_pack/colors/solarized.vim
	dh_vim-addon

.PHONY: copyright
copyright:
	perl debian/vim-scripts.pl $@ > debian/copyright
.PHONY: doc
doc:
	perl debian/vim-scripts.pl $@
.PHONY: maintainer
maintainer: copyright doc

dtd2vim.1: debian/dtd2vim.xml
	xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl $<
vimplate.1: vimplate/bin/vimplate
	pod2man $< $@

clean:: local-clean
local-clean::
	rm -f dtd2vim.1 vimplate.1
	rm -f debian/stamp-local-build