View Single Post
  #5   (View Single Post)  
Old 16th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
Either of these options would end up overriding all other CONFIGURE_ARGS set in the Makefile. You would need to redefine all of them on the commandline or in make.conf which isn't practical.
Hm?
No they won't, make.conf is sourced before the Makefile (See /usr/share/mk/sys.mk), Makefile.local is sourced after the Makefile (Which is why Makefile.local uses +=), commandline arguments are also read before the Makefile ... So it won't override anything.

Quote:
This would work, but you would still need to add:
Code:
.include "Makefile.local"
to the end of the Makefile.
No, Makefile.local is added automatically, as are several other Makefiles, see /usr/ports/Mk/bsd.port.mk line 1205

Trust me, it works as I said it does .... But don't take my word for it, try it out your self .
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote