From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 18 16:02:39 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AF4916A4CE for ; Thu, 18 Dec 2003 16:02:39 -0800 (PST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 378A043D1F for ; Thu, 18 Dec 2003 16:02:36 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 859F43D34 for ; Thu, 18 Dec 2003 19:02:35 -0500 (EST) From: "Dan Langille" To: freebsd-hackers@freebsd.org Date: Thu, 18 Dec 2003 19:02:35 -0500 MIME-Version: 1.0 Message-ID: <3FE1F9CB.6075.928869EF@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: optionally include file within a Makefile X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 00:02:39 -0000 My goal is provide a way to override values in a Makefile with values from a local config file. My attempt is this: if test -r ~/.local-values \ then \ . ~/.local-values \ fi # # Where to get the source to be tested BACULA_SOURCE?="${HOME}/src/bacula-cvs" But I'm getting this error: $ make setup "Makefile", line 8: Need an operator where line 8 is the fi. Ideas? -- Dan Langille : http://www.langille.org/