summaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/deb/debian.rules
blob: 0ba33a4eb77d0a2f111d7bc6379eae1c3029389e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export VERSION=$(shell grep -E "^Version" $(shell find .. -name BUILD -prune -type d -o -name *dsc -print | head -n1) | sed -r 's/^.*: (.*)-.*/\1/')

%:
	bash /etc/profile.d/agl-app-framework-binder.sh
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DVERSION=${VERSION} -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/${DEB_HOST_MULTIARCH}

override_dh_auto_install:
	dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp
	mkdir -p debian/tmp/opt/AGL/

override_dh_auto_test: