On 2006-2-12 12:31 UTC, Robert P. J. Day wrote:
>
> $ alias fredmake="make -I${FRED_DIR}/mkfiles"
[...]
> is there a cleaner, standard way to do this?
You could write something like
MAKEFLAGS := --include-dir=$(FRED_DIR)/mkfiles
in your makefile, but I'd prefer specifying the path in the
include directives:
include $(srcdir)/$(makefilesdir)/whatever.make
and passing $(srcdir) and $(makefilesdir) to each submake, e.g.
$(MAKE) srcdir=$(srcdir) makefilesdir=$(makefilesdir) \
--directory=build-directory somegoal
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make