-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
40 lines (32 loc) · 938 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
# Simple Makefile for some common tasks. This will get
# fleshed out with time to make things easier on developer
# and tester types.
.PHONY: test dist upload
clean: cleanlinks
find . -name "*.pyc" |xargs rm || true
rm -r homestead || true
rm -r dist || true
rm -r build || true
rm -r *.egg-info || true
rm tiddlyweb.log || true
rm -r store || true
rm -r tiddlywebplugins/hoster/resources || true
contents:
twibuilder tiddlywebplugins.hoster
test: contents
py.test -x test
dist: test contents
python setup.py sdist
release: clean pypi
pypi: test
python setup.py sdist upload
dev: contents
./betsy homestead
(cd homestead && ln -s ../tiddlywebplugins . && \
ln -s ../tiddlywebplugins/templates . && \
ln -s ../mangler.py . && \
ln -s ../refresh . && \
echo "import mangler" >> tiddlywebconfig.py)
cleanlinks:
rm logout.py twedit.py templates || true
find tiddlywebplugins -type l |xargs rm ||true