#!/usr/bin/make -f

# Allow override of source path for building in CI/CD or local environments
# Default: /opt (production build machine)
# Can be overridden via DEB_BUILD_OPT_PATH environment variable
OPT_BASE ?= /opt

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	install -d debian/libdtentity-dev/opt/dtEntity
	cp -r $(OPT_BASE)/dtEntity/* debian/libdtentity-dev/opt/dtEntity/

override_dh_strip:
	dh_strip --no-automatic-dbgsym