-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
44 lines (35 loc) · 894 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
include mybook.conf
test:
@echo "Testing installation..."
@jupyter nbconvert --to notebook --execute nb/$(TESTS)
clean:
@echo "Cleaning crap..."
@-find . -name "*~" -exec rm -rf {} \;
@-find . -name "#*#" -delete
@-find . -name "#*" -delete
@-find . -name ".#*" -delete
@-find . -name ".#*#" -delete
@-find . -name "*.nbconvert.*" -delete
@-find . -name ".DS_Store" -delete
@-find . -name ".Icon*" -delete
@-find . -name '__pycache__' -type d | xargs rm -fr
cleanall:clean
@echo "Cleaning all..."
@-rm -rf nb/* html/*
update:
@echo "Adding files..."
@-git add -Af
commit:clean update
@echo "Commiting..."
@-git commit -am "Commit"
@-git push origin master
pull:
@echo "Pulling new files..."
@-git reset --hard HEAD
@-git pull origin master
pack:
@echo "Packing data..."
@bash .store/pack.sh pack
unpack:
@echo "Unpacking data..."
@bash .store/pack.sh unpack