From 0fb26b55fce17d22806a83846827c92f2b884736 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 7 Feb 2018 21:28:52 +0100 Subject: Automatic submodule setup in makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4db1f12..c5521da 100644 --- a/Makefile +++ b/Makefile @@ -5,5 +5,11 @@ all: tetris clean: rm -f tetris -tetris: $(wildcard *.c *.h) +tetris: $(wildcard *.c *.h) termio termio/libtermio.a gcc -Wall -Wextra -std=c11 -O2 -fwrapv -o $@ $(filter %.c,$^) -Itermio termio/libtermio.a + +termio: + git submodule update --init --recursive + +termio/libtermio.a: + make -C termio -- cgit v1.2.3-54-g00ecf