-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
39 lines (29 loc) · 901 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SHELL = /bin/bash
project_name ?= "app"
project_components = $(addprefix ${project_root}/, \
emissor \
cltl-requirements \
cltl-combot \
cltl-emissor-data \
cltl-chat-ui \
app)
git_local ?= ..
git_remote ?= "https://github.com/leolani"
include util/make/makefile.parent.mk
include util/make/makefile.git.mk
submodules := $(shell git submodule | xargs -L1 | cut -f 2 -d ' ' | grep -v util | xargs)
.PHONY: update-build
update-build:
-git submodule foreach 'git submodule update --remote util'
for sm in $(submodules); do \
cd $$sm; \
(git diff --cached --quiet \
&& git add util \
&& git commit -m "Updated cltl-build") \
|| (echo "Stash is not empty"; exit 1); \
cd -; \
done
(git diff --cached --quiet \
&& git add $(submodules) \
&& git commit -m "Updated cltl-build") \
|| (echo "Stash is not empty"; exit 1)