File: rules

package info (click to toggle)
king 2.23.161103+dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 45,672 kB
  • sloc: java: 83,188; xml: 625; cpp: 209; makefile: 29; sh: 14
file content (42 lines) | stat: -rwxr-xr-x 1,407 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
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@ --with javahelper

override_dh_auto_build:
	# create backups of original buildnum resources to enable building twice in a row
	for component in chiropraxis driftwood extratools king molikin ; do \
	  if [ -e $$component/resource/$$component/buildnum.props ] ; then \
	    cp -a $$component/resource/$$component/buildnum.props $$component/resource/$$component/buildnum.props.orig ; \
	  fi ; \
	done
	mkdir -p lib
	ant -buildfile chiropraxis/build.xml
	ant -buildfile extratools/build.xml
	ant -buildfile king/build.xml dist-exe

override_dh_auto_clean:
	ant -buildfile king/build.xml clean
	ant -buildfile chiropraxis/build.xml clean
	ant -buildfile driftwood/build.xml clean
	ant -buildfile extratools/build.xml clean
	ant -buildfile molikin/build.xml clean
	rm -rf king_jar

	# restore backups of original buildnum resources to enable building twice in a row
	for component in chiropraxis driftwood extratools king molikin ; do \
	  rm -rf $$component/resource/$$component/buildnum.props ; \
	  if [ -e $$component/resource/$$component/buildnum.props.orig ] ; then \
	    mv $$component/resource/$$component/buildnum.props.orig $$component/resource/$$component/buildnum.props ; \
	  fi ; \
	done

	find . -name "*.class" -delete
	rm -rf lib

override_dh_compress:
	dh_compress --exclude=.pdf