File: rules

package info (click to toggle)
diff-match-patch 20121121-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,668 kB
  • ctags: 739
  • sloc: objc: 3,274; python: 3,207; cpp: 2,662; cs: 2,386; java: 2,276; ansic: 422; makefile: 13; xml: 1
file content (26 lines) | stat: -rwxr-xr-x 602 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
#!/usr/bin/make -f
# -*- makefile -*-

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

js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)

# This has to be exported to make some magic below work.
export DH_OPTIONS


%:
	dh $@

override_dh_auto_clean:
	rm -rf debian/build

override_dh_auto_build:
	dh_auto_build
	if [ ! -d debian/build ]; \
		then mkdir debian/build; \
	fi; \
	cp javascript/diff_match_patch_uncompressed.js debian/build/diff_match_patch.js ;\
	$(js-compressor)  -o debian/build/diff_match_patch.min.js javascript/diff_match_patch_uncompressed.js