ptr89/debian/rules
Kirill Zhumarin e90d497189 fixes
2024-08-07 13:00:17 +03:00

20 lines
396 B
Makefile
Executable file

#!/usr/bin/make -f
# Include distribution check logic
OS = $(shell lsb_release -is)
VERSION_ID = $(shell lsb_release -rs)
# Default compilers
CC = gcc
CXX = g++
# Conditionally set compilers for Ubuntu 22.04
ifneq (,$(findstring Ubuntu,$(OS)))
ifneq (,$(findstring 22.04,$(VERSION_ID)))
export CC = gcc-12
export CXX = g++-12
endif
endif
%:
dh $@ --buildsystem=cmake