File: rules

package info (click to toggle)
android-platform-system-tools-aidl 1%3A10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,796 kB
  • sloc: cpp: 19,673; java: 972; yacc: 377; python: 160; lex: 115; xml: 19; makefile: 18; sh: 18
file content (27 lines) | stat: -rwxr-xr-x 754 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
#!/usr/bin/make -f

export CC = clang
export CXX = clang++
export DEB_LDFLAGS_MAINT_APPEND = -fPIC
export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/android -I. -I$(OUT_DIR)
export DEB_CXXFLAGS_MAINT_APPEND = -DNDEBUG

lib%.so: debian/lib%.mk
	dh_auto_build --buildsystem=makefile -- --file $<

aidl: debian/aidl.mk libaidl-common.so
	dh_auto_build --buildsystem=makefile -- --file $<

aidl-cpp: debian/aidl-cpp.mk libaidl-common.so
	dh_auto_build --buildsystem=makefile -- --file $<

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

aidl-cpp.html: docs/aidl-cpp.md
	pandoc --standalone --to=html5 --output=$@ $<

%:
	dh $@

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