#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 # see FEATURE AREAS in dpkg-buildflags(1) #export DEB_BUILD_MAINT_OPTIONS = hardening=+all # see ENVIRONMENT in dpkg-buildflags(1) # package maintainers to append CFLAGS #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed ROOT_DIR:=$(shell pwd) export NPU_TRINITY_INSTALL_PREFIX=/opt/trinity export LC_ALL=C.UTF-8 %: dh $@ --parallel override_dh_auto_clean: rm -rf build rm -rf debian/tmp override_dh_auto_configure: PKG_CONFIG_PATH=${NPU_TRINITY_INSTALL_PREFIX}/lib/pkgconfig meson --buildtype=plain --prefix=$(NPU_TRINITY_INSTALL_PREFIX) --sysconfdir=$(NPU_TRINITY_INSTALL_PREFIX)/etc --libdir=lib --bindir=bin --includedir=include build -Dtarget_platform=debian -Denable_npu_emul=true -Denable_data_manip=true override_dh_auto_build: ninja -C build override_dh_auto_test: cd build/tests/unittests && find . -maxdepth 1 -type f -exec basename {} \; |\ xargs -I{} sh -c 'NE_MUTE_STDOUT=1 ./{} --gtest_output="xml:{}.xml"' cd build/tests/apptests && find . -maxdepth 1 -type f -exec basename {} \; |\ xargs -I{} sh -c 'NE_MUTE_STDOUT=1 ./{}' python3 tests/count_test_cases.py build/tests/unittests override_dh_auto_install: DESTDIR=$(CURDIR)/debian/tmp ninja -C build install override_dh_install: dh_install --sourcedir=debian/tmp --list-missing # Add --fail-missing option after adding *.install files for all subpackages.