message: Add Git submodule check for NAS2D with auto download
diff: @@ -42,9 +42,19 @@ intermediate: $(OBJS)
  $(NAS2DLIB): nas2d
  .PHONY: nas2d
  -nas2d:
  +nas2d: $(NAS2DDIR)makefile
  $(MAKE) -C nas2d-core
  +$(NAS2DDIR)makefile:
  + @echo "\nWARNING: NAS2D dependency not found. Install as Git submodule or download manually."
  + @if test -d ".git"; then \
  + echo "Git detected. Attempting to download submodules.\n"; \
  + git submodule update --init --recursive; \
  + else \
  + echo "You don't seem to be using Git. Consider using Git clone.\n"; \
  + false; \
  + fi
  +
  $(OBJS): $(OBJDIR)%.o : $(SRCDIR)%.cpp $(OBJDIR)%.d | build-folder
  $(COMPILE.cpp) $(OUTPUT_OPTION) $<
  $(POSTCOMPILE)
  