forked from TiddlySpace/tiddlyspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (74 loc) · 2.68 KB
/
Makefile
File metadata and controls
89 lines (74 loc) · 2.68 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.PHONY: test remotes jslib qunit dist release deploy pypi dev clean purge
wrap_jslib = curl -L -s $(2) | \
{ \
echo "/***"; echo $(2); echo "***/"; \
echo "//{{{"; cat -; echo "//}}}"; \
} > $(1)
test:
py.test -x test
tiddlywiki:
mkdir src/externals || true
mkdir tiddlywebplugins/tiddlyspace/resources || true
wget http://tiddlywiki.com/beta/empty.html \
-O tiddlywebplugins/tiddlyspace/resources/beta.html
wget http://tiddlywiki.com/alpha/empty.html \
-O tiddlywebplugins/tiddlyspace/resources/alpha.html
wget http://tiddlywiki.com/alpha/tiddlywiki_externaljs_tiddlyspace.html \
-O tiddlywebplugins/tiddlyspace/resources/external_alpha.html
wget http://tiddlywiki.com/alpha/jquery.js \
-O src/externals/alpha_jquery.js.js
wget http://tiddlywiki.com/alpha/jQuery.twStylesheet.js \
-O src/externals/alpha_jQuery.twStylesheet.js.js
wget http://tiddlywiki.com/alpha/twcore.js \
-O src/externals/alpha_twcore.js.js
remotes: tiddlywiki jslib
./cacher
jslib: qunit
$(call wrap_jslib, src/lib/chrjs.js, \
https://github.com/tiddlyweb/chrjs/raw/master/main.js)
$(call wrap_jslib, src/lib/chrjs.users.js, \
https://github.com/tiddlyweb/chrjs/raw/master/users.js)
$(call wrap_jslib, src/lib/jquery.js.js, \
http://code.jquery.com/jquery-1.6.3.min.js)
$(call wrap_jslib, src/lib/ts.js.js, \
https://raw.github.com/jdlrobson/ts.js/master/src/ts.js)
qunit:
mkdir -p src/test/qunit
mkdir -p src/test/lib
curl -Lo src/test/qunit/qunit.js \
https://github.com/jquery/qunit/raw/master/qunit/qunit.js
curl -Lo src/test/qunit/qunit.css \
https://github.com/jquery/qunit/raw/master/qunit/qunit.css
curl -Lo src/test/lib/jquery.js \
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js
curl -Lo src/test/lib/jquery-json.js \
http://jquery-json.googlecode.com/files/jquery.json-2.2.js
dist: clean remotes test
python setup.py sdist
release: dist pypi
deploy: release
./deploy.sh $(ARGS)
pypi: test
python setup.py sdist upload
dev: remotes dev_local
dev_local:
@mysqladmin -f drop tiddlyspace create tiddlyspace
@PYTHONPATH="." ./tiddlyspace dev_instance
( cd dev_instance && \
ln -s ../devconfig.py && \
ln -s ../mangler.py && \
ln -s ../tiddlywebplugins && \
ln -s ../tiddlywebplugins/templates )
@echo "from devconfig import update_config; update_config(config)" \
>> dev_instance/tiddlywebconfig.py
@echo "INFO development instance created in dev_instance"
clean:
find . -name "*.pyc" | xargs rm || true
rm -rf dist || true
rm -rf build || true
rm -rf *.egg-info || true
rm -rf tiddlywebplugins/tiddlyspace/resources || true
rm -f src/externals/* || true
rm -r test_instance || true
purge: clean
cat .gitignore | while read -r entry; do rm -r $$entry; done || true