File: rules

package info (click to toggle)
android-platform-system-tools-aidl 1:8.1.0+r23-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 900 kB
  • sloc: cpp: 11,257; java: 824; yacc: 284; lex: 106; python: 97; xml: 19; sh: 18; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 822 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
#!/usr/bin/make -f

export OUT_DIR = debian/out
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

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

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

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

$(OUT_DIR)/%.1: debian/%.1.md
	pandoc --standalone --output=$@ $<

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

%:
	dh $@

override_dh_auto_build: $(OUT_DIR)/aidl $(OUT_DIR)/aidl-cpp $(OUT_DIR)/aidl-cpp.html $(OUT_DIR)/aidl.1 $(OUT_DIR)/aidl-cpp.1