From owner-freebsd-bugs Tue Jun 6 16:24:30 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA19302 for bugs-outgoing; Tue, 6 Jun 1995 16:24:30 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id QAA19295 for ; Tue, 6 Jun 1995 16:24:27 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id QAA00519; Tue, 6 Jun 1995 16:24:07 -0700 From: "Rodney W. Grimes" Message-Id: <199506062324.QAA00519@gndrsh.aac.dev.com> Subject: Re: misc/484: usr.sbin/Makefile problem with SUBDIR To: bde@zeta.org.au (Bruce Evans) Date: Tue, 6 Jun 1995 16:24:07 -0700 (PDT) Cc: mark@linus.demon.co.uk, freebsd-bugs@freefall.cdrom.com In-Reply-To: <199506050054.KAA09497@godzilla.zeta.org.au> from "Bruce Evans" at Jun 5, 95 10:54:09 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 920 Sender: bugs-owner@FreeBSD.org Precedence: bulk > > >> "make all" followed by "make install clean" fails in usr.sbin > >> due to an attempt to install config.new. > > >How could of it possible attempted to ``install'' in config.new, the > >only times it would go down into that tree is for clean, cleandir or > >other targets with ${MACHINE}==sparc. > > config.new is in the clean SUBDIRs for all MACHINEs, so `make clean > install' adds it to the SUBDIR list for all targets: Your right, the make file should be .if target(clean) instead of .if make(clean). I will make a tree sweep for this bug ofter 2.0.5R rolls out the door. > Bruce > > -------- > makefile > -------- > SUBDIR=foo > > .if make(clean) > SUBDIR+= config.new > .endif > > clean: > echo $(SUBDIR) > > install: > echo $(SUBDIR) > -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD