From 439d3959a233bac3ee29a8ce6cfe6d4a8b6ac001 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 6 Aug 1999 10:55:26 +0000 Subject: [PATCH] [project @ 1999-08-06 10:55:26 by simonmar] Don't add -I$(ReadlineIncludePath) if $(ReadlineIncludePath) is empty. --- ghc/lib/misc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc/lib/misc/Makefile b/ghc/lib/misc/Makefile index 656dc18..e3468d5 100644 --- a/ghc/lib/misc/Makefile +++ b/ghc/lib/misc/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.16 1999/06/25 10:23:08 panne Exp $ +# $Id: Makefile,v 1.17 1999/08/06 10:55:26 simonmar Exp $ # # Makefile for miscellaneous libraries. # @@ -25,7 +25,9 @@ HS_SRCS = $(wildcard *.lhs) ifneq "$(GhcLibsWithReadline)" "YES" HS_SRCS := $(filter-out Readline.lhs,$(HS_SRCS)) else - SRC_HC_OPTS += -I$(ReadlineIncludePath) + ifneq "$(ReadlineIncludePath)" "" + SRC_HC_OPTS += -I$(ReadlineIncludePath) + endif endif HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o) -- 1.7.10.4