On FreeBSD (and possibly) elsewhere you'd invoke the build via "gmake",
thus hardcoded "make" invokations in our Makefiles will break the build.
Use $(MAKE) everywhere, which always does the right thing.
.PHONY: all docs
all:
- make -C lib
+ $(MAKE) -C lib
docs:
doxygen docs/docs.conf
- make -C docs/intro
+ $(MAKE) -C docs/intro
dist: all docs
mkdir -p build
iic: $(BUILDDIR)/$(BASENAME).iic
$(FX2LIBDIR)/lib/fx2.lib: $(FX2LIBDIR)/lib/*.c $(FX2LIBDIR)/lib/*.a51
- make -C $(FX2LIBDIR)/lib
+ $(MAKE) -C $(FX2LIBDIR)/lib
$(BUILDDIR):
mkdir -p $(BUILDDIR)
rm -f $(BUILDDIR)/*.{asm,ihx,lnk,lst,map,mem,rel,rst,sym,adb,cdb,bix}
clean-all: clean
- make -C $(FX2LIBDIR)/lib clean
+ $(MAKE) -C $(FX2LIBDIR)/lib clean