From 4e8244fb81e17840cf1e0c2410683992c25867a9 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 4 May 2022 21:16:14 -0300 Subject: makefiles: deduplicate configure-time vars into new config.mk.in Currently, the configure-time variables (that is, the ones that assign to placeholders, such as "@HAVE_MAN@", which are set/replaced at configure-time) are defined on multiple files (such as on Makefile.in and on common.mk.in). To avoid duplication, centralize these variables on a single file (config.mk.in) and replace all of the other definitions of them with an include of config.mk. --- src/libtracelog/Makefile.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/libtracelog') diff --git a/src/libtracelog/Makefile.in b/src/libtracelog/Makefile.in index aea1b11f2..52d4bcb08 100644 --- a/src/libtracelog/Makefile.in +++ b/src/libtracelog/Makefile.in @@ -1,8 +1,5 @@ -CC=@CC@ -PREFIX=@prefix@ -VERSION=@PACKAGE_VERSION@ -NAME=@PACKAGE_NAME@ -HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ +ROOT = ../.. +include $(ROOT)/config.mk H_FILE_LIST = $(sort $(wildcard *.h)) C_FILE_LIST = $(sort $(wildcard *.c)) -- cgit v1.2.3-54-g00ecf