From 65ae46aaae03b31cb1f95028d8304d50db9ed46e Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Mon, 18 Nov 2024 11:13:49 -0500 Subject: [PATCH] fix: use non-interactive debian frontend in CI --- Makefile | 4 ++-- common.mk | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 935642f..fb78e9a 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ ifeq ($(shell which apt-get),) $(warning Cannot install build dependencies without apt.) $(warning Cannot install build dependencies on non-linux platforms.) else ifeq ($(wildcard /usr/include/libxml2/libxml/xpath.h),) - sudo apt-get install libxml2-dev libxslt1-dev + sudo $(APT) install libxml2-dev libxslt1-dev else ifeq ($(wildcard /usr/include/libxslt/xslt.h),) - sudo apt-get install libxslt1-dev + sudo $(APT) install libxslt1-dev endif diff --git a/common.mk b/common.mk index abbe100..4e6b0a9 100644 --- a/common.mk +++ b/common.mk @@ -7,6 +7,11 @@ DOCS=docs ifneq ($(OS),Windows_NT) OS := $(shell uname) endif +ifdef CI + APT := apt-get --yes +else + APT := apt-get +endif .DEFAULT_GOAL := help