-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
129 lines (110 loc) · 2.89 KB
/
Makefile
File metadata and controls
129 lines (110 loc) · 2.89 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
PYDOC = pydoc
DEST = /home/downey/public_html/greent/thinkpython
pydoc:
$(PYDOC) -w AmoebaWorld
$(PYDOC) -w CellWorld
$(PYDOC) -w color_list
$(PYDOC) -w Gui
$(PYDOC) -w Lumpy
$(PYDOC) -w structshape
$(PYDOC) -w Sync
$(PYDOC) -w TurmiteWorld
$(PYDOC) -w TurtleWorld
$(PYDOC) -w World
rsync -a *.html $(DEST)
FILES = AmoebaWorld.py \
CellWorld.py \
color_list.py \
Gui.py \
lumpy_example1.py \
lumpy_example2.py \
lumpy_example3.py \
Lumpy.py \
mutex.py \
structshape.py \
Sync.py \
TurmiteWorld.py \
turtle_code.py \
TurtleWorld.py \
World.py \
danger.gif \
words.txt \
TESTS = AmoebaWorld_test.py \
CellWorld_test.py \
Gui_test.py \
Lumpy_test.py \
structshape_test.py \
Sync_test.py \
TurmiteWorld_test.py \
TurtleWorld_test.py \
World_test.py \
SCRIPTS =
DOCS = AmoebaWorld.html \
CellWorld.html \
Gui.html \
Lumpy.html \
Sync.html \
TurmiteWorld.html \
TurtleWorld.html \
World.html \
FLAGS = -wn -x import
color:
rsync color_list.py /home/downey/public_html/greent/complexity
rsync color_list.py /home/downey/public_html/greent/thinkpython
rsync color_list.py /home/downey/public_html/greent/thinkpython/code
rsync color_list.py /home/downey/public_html/color
# cd ~/swampy/trunk
# edit Makefile and update versions
# make all
# make zip
# make zipdoc
# make distrib
python3:
cp $(FILES) ../python3
cp sync_code/*.py ../python3/sync_code
cd ../python3; 2to3 $(FLAGS) AmoebaWorld.py
cd ../python3; 2to3 $(FLAGS) CellWorld.py
cd ../python3; 2to3 $(FLAGS) color_list.py
cd ../python3; 2to3 $(FLAGS) Gui.py
cd ../python3; 2to3 $(FLAGS) Lumpy.py
cd ../python3; 2to3 $(FLAGS) structshape.py
cd ../python3; 2to3 $(FLAGS) Sync.py
cd ../python3; 2to3 $(FLAGS) TurmiteWorld.py
cd ../python3; 2to3 $(FLAGS) TurtleWorld.py
cd ../python3; 2to3 $(FLAGS) World.py
cd ../python3; 2to3 $(FLAGS) AmoebaWorld_test.py
cd ../python3; 2to3 $(FLAGS) CellWorld_test.py
cd ../python3; 2to3 $(FLAGS) Gui_test.py
cd ../python3; 2to3 $(FLAGS) Lumpy_test.py
cd ../python3; 2to3 $(FLAGS) structshape_test.py
cd ../python3; 2to3 $(FLAGS) TurmiteWorld_test.py
cd ../python3; 2to3 $(FLAGS) TurtleWorld_test.py
cd ../python3; 2to3 $(FLAGS) Sync_test.py
cd ../python3; 2to3 $(FLAGS) World_test.py
# to update Swampy on PyPI
# cd ~/swampy/trunk/python2/swampy
# emacs CHANGES.txt setup.py
# update the version number below
# maybe also emacs MANIFEST
# cd ..
# make package
# make dist
# cd ~/downey/public_html/swampy
# make install.html point to new version
# cd ~/public_html; sh back
# cd ~/public_html/greent; sh back
PACKAGE = swampy
ZIP = swampy-2.1.7.zip
package:
rsync $(FILES) $(PACKAGE)/swampy
rsync $(TESTS) $(PACKAGE)/test
rsync $(SCRIPTS) $(PACKAGE)/bin
cd $(PACKAGE); zip -r $(ZIP) swampy
install:
cd $(PACKAGE); sudo python setup.py install
dist:
cd $(PACKAGE); rsync $(ZIP) $(DEST)
cd $(PACKAGE); python setup.py sdist --formats gztar,zip upload
cd /home/downey/public_html/greent; sh back
clean:
rm *~ *.pyc