File: rules

package info (click to toggle)
android-platform-build 1%3A10.0.0%2Br36-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 7,508 kB
  • sloc: python: 19,710; javascript: 6,836; makefile: 3,841; cpp: 3,384; cs: 3,339; sh: 2,058; java: 1,486; ansic: 791; xml: 84
file content (53 lines) | stat: -rwxr-xr-x 1,471 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/make -f

# Security Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk
include /usr/share/javahelper/java-vars.mk

export DEB_HOST_MULTIARCH
export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG -I/usr/include/android
export DEB_LDFLAGS_MAINT_APPEND = -fPIC

export CLASSPATH = /usr/share/java/bcprov.jar:/usr/share/java/bcpkix.jar:/usr/share/java/apksig.jar

MANPAGES = \
  debian/java-event-log-tags.1 \
  debian/makeparallel.1 \
  debian/merge-event-log-tags.1 \
  debian/signapk.1 \
  debian/signtos.1 \
  debian/zipalign.1 \
  debian/ziptime.1 \

debian/%.1: debian/%.1.md
	pandoc --standalone --from=markdown-smart --to=man --output=$@ $<

all-manpages: $(MANPAGES)
	@echo "Generated all manpages."

clean-manpages:
	$(RM) $(MANPAGES)

makeparallel: debian/makeparallel.mk
	dh_auto_build --buildsystem=makefile -- --file $<

zipalign: debian/zipalign.mk
	dh_auto_build --buildsystem=makefile -- --file $<

ziptime: debian/ziptime.mk
	dh_auto_build --buildsystem=makefile -- --file $<

signapk.jar:
	jh_build --javacopts="-encoding UTF-8 -source 1.9 -target 1.9" --no-javadoc --main=com.android.signapk.SignApk $@ tools/signapk/

signtos.jar:
	jh_build --javacopts="-encoding UTF-8 -source 1.9 -target 1.9" --no-javadoc --main=com.android.signtos.SignTos $@ tools/signtos/

%:
	dh $@ --with javahelper

override_dh_auto_build-arch: makeparallel zipalign ziptime

override_dh_auto_build-indep: signapk.jar signtos.jar