File: rules

package info (click to toggle)
openlayers 2.11%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 60,144 kB
  • ctags: 10,906
  • sloc: xml: 7,435; python: 778; sh: 68; makefile: 30
file content (42 lines) | stat: -rwxr-xr-x 967 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
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f
# -*- makefile -*-

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

DEBVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2)
UPVER=$(shell echo $(DEBVER) | cut -d+ -f1)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	
	( cd build ; \
	./build.py ; \
	yui-compressor -o min.js OpenLayers.js ; \
	cat license.txt min.js > OpenLayers.min.js )

	mkdir gendoc
	naturaldocs -i lib/ -o HTML gendoc/ -p doc_config/ -s Default OL

override_dh_auto_clean:
	dh_auto_clean
	-rm -rf gendoc

get-orig-source:
	uscan --force-download \
		--download-version $(UPVER) \
		--rename \
		--destdir .
	tar xvf openlayers_$(UPVER).orig.tar.gz
	cd OpenLayers-$(UPVER)/
	rm -rf OpenLayers.js
	for i in BeautifulSoup.py exampleparser.py jsmin.c jsmin.py \
	    minimize.py shrinksafe.py update_dev_dir.sh; do \
		rm -rf tools/$$i ; \
	done
	cd ..
	tar zcf openlayers_$(UPVER)+ds1.orig.tar.gz OpenLayers-$(UPVER)/
	-rm -rf OpenLayers-$(UPVER)/