#!/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/libbuildingmodels-dev/opt/BuildingModels
	cp -r $(OPT_BASE)/BuildingModels/* debian/libbuildingmodels-dev/opt/BuildingModels/

override_dh_strip:
	dh_strip --no-automatic-dbgsym