File: rules

package info (click to toggle)
scala 2.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 67,208 kB
  • sloc: java: 27,488; xml: 4,412; python: 2,297; sh: 734; makefile: 16; ansic: 6
file content (28 lines) | stat: -rwxr-xr-x 811 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
#!/usr/bin/make -f

export DH_VERBOSE=1

include $(CURDIR)/build.number
BUNDLE_VERSION="$(version.major).$(version.minor).$(version.patch)"

override_dh_auto_build:
	# Build Jline
	ant -f debian/build-jline.xml -propertyfile debian/ant-jline.properties
	# Build Scala
	ANT_OPTS="-Xmx1024M -Xss64M" ant -Dversion.number=$(BUNDLE_VERSION) fastdist

	for file in scala scala-library; do \
		sed "s/@VERSION@/$(BUNDLE_VERSION)/" debian/$${file}.pom.xml.in > debian/$${file}.pom.xml; \
	done

override_dh_auto_clean:
	rm -rf build dist

override_dh_compress:
	dh_compress -X.js -X.scala
	# dh_compress is executed after mh_installpoms and mh_linkjars
	# ugly hack to fix #654549
	find debian/scala \( -type f -or -type l \) -name "scala-library*.jar" -delete

%:
	dh $@ --with javahelper --with jh_maven_repo_helper