From owner-freebsd-questions@freebsd.org Wed Apr 18 18:03:34 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17C9AF9E9BA for ; Wed, 18 Apr 2018 18:03:34 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 8E6956F73C for ; Wed, 18 Apr 2018 18:03:32 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id BED40201A5; Thu, 19 Apr 2018 02:54:05 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 7AA5B32BAF; Thu, 19 Apr 2018 02:54:05 +0900 (JST) Received: from localhost (half.home.utahime.org [192.168.174.12]) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 5996A32BAE; Thu, 19 Apr 2018 02:54:05 +0900 (JST) Date: Thu, 19 Apr 2018 02:50:38 +0900 (JST) Message-Id: <20180419.025038.1637400259542078404.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: How to make already defined make(1) variable undefined from command line From: Yasuhiro KIMURA X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 18:03:34 -0000 Question: Assuming that variable FOO is defined in Makefile or /etc/make.conf or somewhere else, are there any way to make FOO undefined from command line? Background: I put 'DEVELOPER=yes' in /etc/make.conf. While it helps improving quality of ports, sometimes I want to disable developer mode to stop known warnings displayed. At first I tried following commands. % make DEVELOPER=no % make DEVELOPER=false % make DEVELOPER=0 % make DEVELOPER= ... But none of them worked as is expected because ports framework only checks if DEVELOPER is defined and doesn't see its value at all. So now I edit /etc/make.conf and comment out the definition each time but it's a bother. Then, are there any way to make already defined make(1) variable undefined from command line? Best Regards. --- Yasuhiro KIMURA