-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
52 lines (45 loc) · 1.11 KB
/
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
48
49
50
51
52
all:
-rm -rf dist
yarn install
make copy_en_files
yarn index
yarn en-build
make copy_kr_files
yarn index
yarn kr-build
copy_en_files:
-rm -rf json
-rm -rf static/_images
-rm -rf static/sponsors
-mkdir json
cp -r ../text/build/json .
mv json/_images static/
cp -r json/_static/sponsors static/
copy_kr_files:
-rm -rf json
-rm -rf static/_images
-rm -rf static/sponsors
-mkdir json
cp -r ../text/build/json_kr/* json
mv json/_images static/
cp -r json/_static/sponsors static/
preview:
yarn install
yarn index
yarn build
yarn dev
# docker_image: position_files
# docker build . -t mtiller/book-content
# publish_site: position_files
# $(info Uploading to ZEIT Now)
# @yarn upload -t $(NOW_TOKEN)
# alias_preview:
# $(info Aliasing result to mbe-preview.modelica.university)
# @yarn alias_preview -t $(NOW_TOKEN)
# $(info Aliasing result to beta.book.xogeny.com)
# @yarn alias_beta -t $(NOW_TOKEN)
# alias_release:
# $(info Aliasing result to mbe.modelica.university)
# @yarn alias_release -t $(NOW_TOKEN)
# $(info Aliasing result to book.xogeny.com)
# @yarn alias_original -t $(NOW_TOKEN)