File: rules

package info (click to toggle)
dojo 1.17.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 116,924 kB
  • sloc: javascript: 492,491; php: 10,436; xml: 3,415; java: 3,102; sql: 928; sh: 489; pascal: 205; perl: 182; makefile: 58; sed: 37; ruby: 10
file content (83 lines) | stat: -rwxr-xr-x 2,420 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/make -f

DH_VERBOSE=1

export JAVA_HOME=/usr/lib/jvm/default-java

# Put depended upon jars in here
export CLASSPATH=/usr/share/java/js.jar

%:
	dh $@ --with javahelper


override_dh_auto_clean:
	rm -rf $(CURDIR)/release
	rm -f $(CURDIR)/org
	rm -rf $(CURDIR)/shrinksafe
	rm -f $(CURDIR)/util/shrinksafe/shrinksafe.jar
	rm -rf $(CURDIR)/debian/dojox-modules

util/shrinksafe/js.jar:
	ln -s /usr/share/java/js.jar util/shrinksafe/

# workaround jh_build bug
org: util/shrinksafe/src/org
	ln -s "$<" "$@"

shrinksafe: util/shrinksafe/src
	cp -r "$<" "$@"

# build shrinksafe
shrinksafe.jar: org shrinksafe
	JAVA_HOME=/usr/lib/jvm/default-java \
	CLASSPATH=/usr/share/java/js.jar \
	JH_JAR_EXTRA=org/dojotoolkit/shrinksafe/resources/Messages.properties \
	   jh_build --javadoc-opts="-html5" shrinksafe.jar shrinksafe


util/shrinksafe/shrinksafe.jar: shrinksafe.jar
	ln -s "../../$<" "$@"

override_dh_auto_build: util/shrinksafe/shrinksafe.jar
	# build release
	cd util/buildscripts && ./build.sh profile=standard action=release

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	cd util/shrinksafe/tests && ./runner.sh
	dh_auto_test
else
	@echo '**********************************************************'
	@echo 'Skip test suite                                           '
	@echo '**********************************************************'
endif

debian/dojox-modules:
	mkdir -p $@

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_installdocs: debian/dojox-modules
	# copy doc
	rsync -am --exclude="/*/*/" --include='*README*' --include='*/' --exclude='*' dojox/ debian/dojox-modules
	dh_installdocs --package=libjs-dojo-core
	dh_installdocs --package=shrinksafe
	dh_installdocs --package=libjs-dojo-dijit --link-doc=libjs-dojo-core
	dh_installdocs --package=libjs-dojo-dojox --link-doc=libjs-dojo-core
	jdupes -rl debian/shrinksafe/usr/share/doc/shrinksafe/api
else
override_dh_installdocs:
	@echo '**********************************************************'
	@echo 'Skip doc                            '
	@echo '**********************************************************'
endif



override_dh_install:
	dh_install \
		-XcompatGrid.tar.gz -XCONTRIBUTING.md -Xdemos \
		-Xdojox/cometd -Xdojox/jq \
		-Xdojox/mobile/build -Xdojox/mobile/themes/utils \
		-Xdojox/rails -Xdojox/storage/buildFlashStorage.sh \
		-XLICENSE -XREADME -X.as