File: rules

package info (click to toggle)
knopflerfish-osgi 6.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,188 kB
  • sloc: java: 38,413; xml: 3,453; sh: 71; makefile: 23
file content (29 lines) | stat: -rwxr-xr-x 868 bytes parent folder | download
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
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=ant

override_dh_auto_build:
	mkdir -p osgi/framework/libs
	ln -s /usr/share/java/asm-all.jar osgi/framework/libs/asm-3.2.jar
	mkdir -p osgi/annotations
	ln -s /usr/share/java/osgi.annotation.jar osgi/annotations/osgi.annotation-6.0.1.jar

	dh_auto_build -- -f ant/bundletasks.xml build_bundle_tasks -Dasm.jar=/usr/share/java/asm-all.jar
	dh_auto_build -- -f osgi/framework/build.xml jar

override_dh_auto_clean:
	-rm -Rf ant/classes
	-rm -Rf ant/lib
	-rm -Rf osgi/framework/libs/*.jar
	-rm -Rf osgi/annotations/*.jar
	-rm -f osgi/framework/resources/tstamp
	-rm -f osgi/framework/resources/version
	-rm -f osgi/framework/resources/exports
	-rm -fr api/ osgi/out
	-rm -f osgi/jars/framework-*.jar
	-rm -f osgi/framework.jar
	-rm -f framework.html

get-orig-source:
	uscan --force-download --rename --repack --compression xz