File: rules

package info (click to toggle)
android-platform-system-tools-aidl 1%3A7.0.0%2Br33-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 824 kB
  • sloc: cpp: 10,484; java: 732; yacc: 267; python: 107; lex: 102; makefile: 24; xml: 19
file content (35 lines) | stat: -rwxr-xr-x 788 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
#!/usr/bin/make -f

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

lib%.so: debian/lib%.mk
	make -f $<

aidl: debian/aidl.mk libaidl-common.so
	make -f $<

aidl-cpp: debian/aidl-cpp.mk libaidl-common.so
	make -f $<

debian/%.1: debian/%.1.md
	pandoc -s -o $@ $<

docs/aidl-cpp.html: docs/aidl-cpp.md
	pandoc -s -t html5 -o $@ $<

%:
	dh $@

override_dh_auto_build: aidl aidl-cpp docs/aidl-cpp.html debian/aidl.1 debian/aidl-cpp.1

override_dh_auto_clean:
	dh_auto_clean
	make clean -f debian/aidl.mk
	make clean -f debian/aidl-cpp.mk
	make clean -f debian/libaidl-common.mk
	$(RM) debian/*.1 docs/aidl-cpp.html

get-orig-source:
	uscan --download-current-version --force-download --rename