-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
47 lines (38 loc) · 978 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
40
41
42
43
44
45
46
47
all: update_submodules
make -C js/rdf all
make -C js/mashup all
update: pull
update_submodules:
@@if [ -e .git ]; then \
if git submodule status | grep -q -E '^-'; then \
git submodule update --init --recursive; \
else \
git submodule update --init --recursive --merge; \
fi; \
fi;
pull_submodules:
@@git submodule foreach "git pull \$$(git config remote.origin.url)"
@@git submodule summary
pull: pull_submodules
@@git pull ${REMOTE} ${BRANCH}
gh-pages:
git branch -D gh-pages ||:
# git checkout -b gh-pages
git checkout gh-pages
make -B
git add -f js/rdf
git add -f js/mashup/*.js
git commit -m 'gh-pages: latest build'
git push -f origin gh-pages
git checkout master
clean:
make -C js/mashup clean
status:
@pwd
@git branch -v
@git status -s
@make -sC js/rdf status
writable:
@sed -i -re 's/git:\/\/github.com\//[email protected]:/' .git/config
@make -sC js/rdf writable
.PHONY: all clean update update_submodules pull_submodules pull