corectrl/debian/rules
2024-11-23 02:26:39 +01:00

17 lines
436 B
Makefile
Executable File

#!/usr/bin/make -f
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution)
ifeq ($(DEB_DISTRIBUTION),bionic)
export CC = gcc-8
export CXX = g++-8
endif
%:
dh $@ --buildsystem=cmake
override_dh_auto_configure:
dh_auto_configure -- -DBUILD_TESTING=OFF
override_dh_auto_test:
true