From a38f926f735e658d9bedccc726f42ca2e18814fc Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Fri, 19 Aug 2016 22:46:50 -0400 Subject: [PATCH] Update exp82xx and make automatically get new submodules if needed --- embedded8266/Makefile | 14 ++++++++++---- embedded8266/esp82xx | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/embedded8266/Makefile b/embedded8266/Makefile index 042386c..5e9de5c 100644 --- a/embedded8266/Makefile +++ b/embedded8266/Makefile @@ -13,7 +13,13 @@ LDFLAGS_CORE += -Wl,-Map,output.map #Useful git commands - -init_submodule : - git submodule update --init --recursive - +ifndef TARGET +# Fetch submodule if the user forgot to clone with `--recursive` +GETSUBMODS = all burn burnweb netweb netburn clean cleanall purge +.PHONY : $(GETSUBMODS) +$(GETSUBMODS) : + $(warning Submodule esp82xx was not fetched. Trying it now.) + git submodule update --init --recursive + $(info Re-unning make...) + make $@ $(MFLAGS) $(MAKEOVERRIDES) +endif diff --git a/embedded8266/esp82xx b/embedded8266/esp82xx index 4cb95b1..8d5d658 160000 --- a/embedded8266/esp82xx +++ b/embedded8266/esp82xx @@ -1 +1 @@ -Subproject commit 4cb95b1f3927128d2e977d3c1b33fea81203804d +Subproject commit 8d5d6580244df6ce0462be6ce91f109d672b2e36