File: rules

package info (click to toggle)
netty 1%3A4.1.48-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,796 kB
  • sloc: java: 284,832; xml: 7,075; ansic: 3,756; sh: 134; makefile: 34
file content (25 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java
export BUILD_DATE=$(shell date --date='@${SOURCE_DATE_EPOCH}' --utc +'%Y-%m-%d %H:%M:%S')

%:
	dh $@

override_dh_auto_build:
	# Replace the missing groovy-maven-plugin
	mkdir -p common/target
	groovy -Dcollection.template.dir=common/src/main/templates \
	       -Dcollection.template.test.dir=common/src/test/templates \
	       -Dcollection.src.dir=common/target/generated-sources/collections/java \
	       -Dcollection.testsrc.dir=common/target/generated-test-sources/collections/java \
	       common/src/main/script/codegen.groovy

	dh_auto_build -- package -Dbuild.date='${BUILD_DATE}'

override_dh_installdocs:
	dh_installdocs --link-doc=libnetty-common-java

override_dh_auto_clean:
	dh_auto_clean
	rm -f common/dependency-reduced-pom.xml