xref: /OK3568_Linux_fs/external/libmali/debian/rules (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
4export DH_VERBOSE = 1
5
6TARGETS = $(shell cat debian/targets | grep $(DEB_HOST_GNU_TYPE))
7
8override_dh_clean:
9	dh_clean
10	rm -rf libmali-*/
11	rm -rf debian/libmali-*/
12
13override_dh_auto_configure:
14	for target in $(TARGETS); do \
15		export $$(scripts/parse_name.sh $$target); \
16		dh_auto_configure --builddirectory=$$name -- \
17			-Darch=$${target%%-*} -Dgpu=$$gpu \
18			-Dversion=$$version -Dsubversion=$$subversion \
19			-Dplatform=$$platform -Dvendor-package=true -Dwrappers=enabled; \
20	done
21
22override_dh_auto_build:
23override_dh_auto_test:
24
25override_dh_auto_install:
26	for target in $(TARGETS); do \
27		export $$(scripts/parse_name.sh $$target); \
28		dh_auto_install --builddirectory=$$name \
29			--destdir=debian/$$name; \
30	done
31
32%:
33	dh $@ --buildsystem=meson
34