File: rules

package info (click to toggle)
robocode 1.9.3.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,648 kB
  • sloc: java: 53,012; cs: 25,275; xml: 2,337; sh: 272; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 708 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
PKD := $(abspath $(dir $(MAKEFILE_LIST)))
VER := $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)

%:
	dh $@ --with javahelper

override_dh_auto_build:
	sed -e 's/@RCVER@/$(VER)/g' < debian/misc/robocode.in > debian/misc/robocode
	sed -e 's/@RCVER@/$(VER)/g' < debian/misc/compiler.properties.in > debian/misc/compiler.properties
	sed -e 's/@RCVER@/$(VER)/g' < debian/examples/roborumble.in > debian/examples/roborumble
	sed -e 's/@RCVER@/$(VER)/g' < debian/maven.properties.in > debian/maven.properties
	dh_auto_build

override_dh_installchangelogs:
	dh_installchangelogs versions.md

override_dh_install:
	$(RM) -r debian/robocode/usr/share/maven-repo
	dh_install