I see that as usual I've made a hash of everything...
anyway this fixes the issue you saw where not all targets were built by
What's happening here is that whichever rule gets defined first in the include
is then being selected as the default goal, since the default goal is unless
otherwise specified on the commandline the first rule defined in the file.
But I'm so used to putting includes at the top of the file that I didn't
even think about it...
Anyway having installed lua5.2, I see that with this patch applied a single
invocation of `make` once again builds both luxio-5.1.so and luxio-5.2.so
As an afterthought there's an additional patch to declare all phony targets.
Hope this helps,
Richard Ipsum (2):
Makefile: Fix default goal
Makefile: Declare PHONY targets
Makefile | 14 ++++++++++----
findlua.mk | 9 ++++++++-
2 files changed, 18 insertions(+), 5 deletions(-)