-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·66 lines (43 loc) · 1.32 KB
/
Makefile
File metadata and controls
executable file
·66 lines (43 loc) · 1.32 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
BUILDDIR = _book
RESDIR = resource
doc: build page commit
@echo
@echo "==========================================================="
@echo " VisualOps Documents has been Generated Successful!!!"
@echo "==========================================================="
@echo
build:
-git checkout master
gitbook build
page:
-git branch -D gh-pages
#git checkout --orphan gh-pages
git symbolic-ref HEAD refs/heads/gh-pages
ls -1|grep -v "^$(BUILDDIR)$$"|xargs rm -rf
mv $(BUILDDIR)/* .
rm -r $(BUILDDIR)
@echo
@echo "==========================================================="
@echo " GitHub Pages has been Generated Successful!!!"
@echo "==========================================================="
@echo
co_master:
-git checkout master
commit:
-git add -A
-git commit -a --no-edit -m "Robot: Auto Deploy"
deploy:
git push origin gh-pages:gh-pages -f
@echo
@echo "==========================================================="
@echo " GitHub Pages has been Deployed!!!"
@echo "==========================================================="
@echo
help:
@echo "make to build and gernerate gh-pages branch"
@echo "make deploy to deploy to github"
clean:
rm -rf $(BUILDDIR)