summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
53819b4)
If you just run `make' then `$(MAKECMDGOALS)' is empty, so we get the
default target of `main.mk'. Nothing is set up by `usual.mk', so we
end up with `$(srcdir)/configure' established by `regen.mk'.
Instead, propagate `all' to the `main.mk' makefile. Maybe this should
be configurable, though I don't think that'll be very useful in real
life.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
%: FORCE-ALWAYS-RUN
\@:
Makefile FORCE-ALWAYS-RUN:
%: FORCE-ALWAYS-RUN
\@:
Makefile FORCE-ALWAYS-RUN:
- \$(MAKE) -C $cd -f main.mk \$(addprefix ${dir_prefix},\$(MAKECMDGOALS))
+ \$(MAKE) -C $cd -f main.mk \$(addprefix ${dir_prefix},\$(or \$(MAKECMDGOALS),all))