diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-02-07 21:28:52 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-02-07 21:28:52 +0100 |
commit | 0fb26b55fce17d22806a83846827c92f2b884736 (patch) | |
tree | 1d53086b59a7f5bd28e32ca1fc25b826857c36c5 /Makefile | |
parent | e1c5955c23f7be7cb7c6ab6fc3d2a0046c1c36a6 (diff) |
Automatic submodule setup in makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |