Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 1995 17:53:55 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, rgrimes@gndrsh.aac.dev.com
Cc:        freebsd-bugs@freefall.cdrom.com, mark@linus.demon.co.uk
Subject:   Re: misc/484: usr.sbin/Makefile problem with SUBDIR
Message-ID:  <199506070753.RAA07406@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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)
>> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506070753.RAA07406>