-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
47 lines (35 loc) · 1.17 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
GIT_REMOTE_BASE = https://github.com/
.PHONY: *
build: update site api examples
update: clone_pyjsorg
git pull
examples: update clone_pyjs
python2 build/pyjs/examples/__main__.py --download
rm -rf site/examples
cp -a build/pyjs/examples/__output__ site/examples
api: update clone_pyjs
mkdir -p site/api
python2 build.py -v --api-only --pyjs-src=build/pyjs
sed -i -r '/Generated by Epydoc/d' site/api/*.html
date --rfc-3339=s > site/api/_timestamp
site: update clone_pyjsorgwiki
mkdir -p site
python2 build.py -v --site-only --wiki-src=build/wiki
cp site/About.html site/index.html
rm -rf site/assets
cp -aT build/wiki/assets site/assets
cp -aT assets site/assets
clone_pyjs:
test -d build/pyjs || git clone --depth 1 $(GIT_REMOTE_BASE)pyjs/pyjs.git build/pyjs
cd build/pyjs && git pull
clone_pyjsorgwiki:
test -d build/wiki || git clone --depth 1 $(GIT_REMOTE_BASE)pyjs/pyjs.org.wiki.git build/wiki
cd build/wiki && git pull
clone_pyjsorg:
test -d site || git clone $(GIT_REMOTE_BASE)pyjsorg/pyjs.org.git site
cd site && git pull
#-----------------------------------------------------------------( end build )
distclean:
git clean -ffdx
clean:
git clean -fdxe /build