From owner-freebsd-bugs Wed Jun 7 00:58:03 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA07009 for bugs-outgoing; Wed, 7 Jun 1995 00:58:03 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id AAA06994 for ; Wed, 7 Jun 1995 00:57:48 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id RAA07406; Wed, 7 Jun 1995 17:53:55 +1000 Date: Wed, 7 Jun 1995 17:53:55 +1000 From: Bruce Evans Message-Id: <199506070753.RAA07406@godzilla.zeta.org.au> To: bde@zeta.org.au, rgrimes@gndrsh.aac.dev.com Subject: Re: misc/484: usr.sbin/Makefile problem with SUBDIR Cc: freebsd-bugs@freefall.cdrom.com, mark@linus.demon.co.uk Sender: bugs-owner@FreeBSD.org Precedence: bulk >Your right, the make file should be .if target(clean) instead of >.if make(clean). This breaks `make clean install'. `make clean' works right. Apparently target(clean) is false for `make clean install'! This is another reason why making multiple targets at once is poor technique. Bruce >> -------- >> makefile >> -------- >> SUBDIR=foo >> >> .if make(clean) >> SUBDIR+= config.new >> .endif >> >> clean: >> echo $(SUBDIR) >> >> install: >> echo $(SUBDIR) >>