File: rules

package info (click to toggle)
node-carto 1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,668 kB
  • sloc: javascript: 5,195; xml: 384; python: 33; makefile: 27
file content (28 lines) | stat: -rwxr-xr-x 882 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

execute_after_dh_install:
	mkdir -p $(CURDIR)/debian/node-carto/usr/share/vim/addons/syntax/
	cp build/vim-carto/syntax/carto.vim $(CURDIR)/debian/node-carto/usr/share/vim/addons/syntax/
	mkdir -p $(CURDIR)/debian/node-carto/usr/share/vim/addons/ftdetect/
	cp build/vim-carto/ftdetect/carto.vim $(CURDIR)/debian/node-carto/usr/share/vim/addons/ftdetect/
	rm -r $(CURDIR)/debian/node-carto/usr/share/nodejs/carto/build
	rm -r $(CURDIR)/debian/node-carto/usr/share/nodejs/carto/man

override_dh_installchangelogs:
	dh_installchangelogs -- CHANGELOG.md

override_dh_auto_build:
	help2man ./bin/carto > man/carto.1
	$(MAKE) -C docs html

override_dh_auto_test:
	# for unknown reason, the fontset-duplication test fails
	rm -f test/rendering/fontset-duplication.mml
	mocha