27 lines
1.0 KiB
Makefile
27 lines
1.0 KiB
Makefile
#!/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/librti-connext-dds-7.7.0-dev/opt/rti_connext_dds-7.7.0
|
|
cp -r $(OPT_BASE)/rti_connext_dds-7.7.0/* debian/librti-connext-dds-7.7.0-dev/opt/rti_connext_dds-7.7.0/
|
|
install -d debian/librti-connext-dds-7.7.0-dev/opt/rti_connext_dds-7.7.0/etc
|
|
# Copy license from build machine or project root
|
|
if [ -f $(OPT_BASE)/rti_connext_dds-7.7.0/rti_license.dat ]; then \
|
|
cp $(OPT_BASE)/rti_connext_dds-7.7.0/rti_license.dat debian/librti-connext-dds-7.7.0-dev/opt/rti_connext_dds-7.7.0/rti_license.dat; \
|
|
elif [ -f ../../../../rti_license.dat ]; then \
|
|
cp ../../../../rti_license.dat debian/librti-connext-dds-7.7.0-dev/opt/rti_connext_dds-7.7.0/rti_license.dat; \
|
|
else \
|
|
echo "ERROR: rti_license.dat not found!"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
override_dh_strip:
|
|
dh_strip --no-automatic-dbgsym
|