APP_DIR ?= . SDK_DIR ?= ../sdk VERSION ?= vdev CFLAGS += -D'VERSION="${VERSION}"' Q ?= @ -include $(SDK_DIR)/Makefile.mk .PHONY: all all: debug .PHONY: sdk sdk: ../sdk/Makefile.mk .PHONY: update update: sdk @echo "Updating Git submodule 'sdk'..."; git submodule update --remote --merge sdk ../sdk/Makefile.mk: $(Q) git submodule update --init ../sdk