From 1124889094be65fda1e6843f81b19f36fd2df211 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 21 Nov 1995 19:33:57 +0000 Subject: (top_srcdirinc, srcdirinc): New variables. (CPPFLAGS): Use new vars $(top_srcdirinc) and $(srcdirinc) to avoid ugly duplication of `.' and `..' in compile lines when possible. --- Makeconf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makeconf') diff --git a/Makeconf b/Makeconf index 15664353..201d205d 100644 --- a/Makeconf +++ b/Makeconf @@ -55,7 +55,17 @@ include $(..)config.make # It is important to have this inclusion first; that picks up our # library header files locally rather than from installed copies. # Append to any value set by the specific Makefile or by configure. -CPPFLAGS += -I. -I$(srcdir) -I.. -I$(top_srcdir) +ifeq ($(srcdir),.) +srcdirinc= +else +srcdirinc=-I$(srcdir) +endif +ifeq ($(top_srcdir),..) +top_srcdirinc= +else +top_srcdirinc=-I$(top_srcdir) +endif +CPPFLAGS += -I. $(srcdirinc) -I.. $(top_srcdirinc) CFLAGS += -Wall # Decode makemode: -- cgit v1.2.3