Skip to content

Commit

Permalink
Merge pull request #25 from Legimet/makefile-check-submodules
Browse files Browse the repository at this point in the history
Check for submodules in makefile
  • Loading branch information
Vogtinator committed Feb 19, 2016
2 parents 83ddc46 + 45b65b0 commit 06d3516
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
@@ -1,3 +1,10 @@
# Check for submodules
ifneq ($(words $(wildcard ndless-sdk/thirdparty/nspire-io/Makefile) \
$(wildcard ndless-sdk/thirdparty/zlib/configure) \
$(wildcard ndless-sdk/thirdparty/freetype2/Makefile)),3)
$(error Run `git submodule init' and `git submodule update' to checkout the submodules)
endif

SUBDIRS = ndless-sdk ndless

all:
Expand All @@ -9,4 +16,3 @@ clean:
@for i in $(SUBDIRS); do \
echo "Clearing in $$i..."; \
(cd $$i; make clean) || exit 1; done

0 comments on commit 06d3516

Please sign in to comment.