File: rules

package info (click to toggle)
modestmaps-js 3.3.6%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,184 kB
  • ctags: 1,465
  • sloc: makefile: 58
file content (30 lines) | stat: -rwxr-xr-x 779 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
#!/usr/bin/make -f
# -*- makefile -*-

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

ifndef UPVER
UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
endif

%:
	dh $@ --parallel

override_dh_auto_clean:
	# nothing

override_dh_auto_build:
	uglifyjs -o debian/modestmaps.min.js modestmaps.js

override_dh_installexamples:
	dh_installexamples
	$(RM) debian/modestmaps-js-doc/usr/share/doc/modestmaps-js-doc/examples/README \
	      debian/modestmaps-js-doc/usr/share/doc/modestmaps-js-doc/examples/node/.gitignore

	# Use libjs-excanvas package
	$(RM) debian/modestmaps-js-doc/usr/share/doc/modestmaps-js-doc/examples/bubble/excanvas.js

get-orig-source:
	uscan --verbose --force-download --download-version $(UPVER)