forked from 6004x/jade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
133 lines (97 loc) · 4.21 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
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
130
131
132
133
# Makefile for Jade subtree
# Here's the directory containing MY files:
MYFILES=files/$(USER)
what:
@echo "Make what? Plausible args include"
@echo
@echo " make run run local copy of Jade, using MYFILES"
@echo
@echo " make run-cjt run local copy of Jade, using cjt's files"
@echo " make run-ward run local copy of Jade, using ward's files"
@echo " make run-notes run local copy of Jade, using notes files"
@echo " make run-bugs run local copy of Jade, using bugs files"
@echo
@echo " make push-mine Update your files: push/commit/git push them"
@echo " make push-cjt Update CJT's files in next git commit/push"
@echo " make push-ward Update ward's files in next git commit/push"
@echo " make push-notes Update notes files in next git commit/push"
@echo " make push-bugs Update bugs files in next git commit/push"
@echo
@echo " make commit update modified/deleted files prior to git push"
@echo " make pull update files from git repository, set permissions"
@echo
@echo "Run Some ad-hoc example files:"
@echo " make run-beta Run Jade on vanilla beta running test code"
@echo " make run-beta-fib Run Jade on vanilla beta running fibonacci code"
@echo " make run-mul32 32-bit multiplier, approach 2 (not working)"
@echo
@echo " make beta-json Readable version of a json file (needs underscore)"
@echo
################################################################################
### GIT interface commands:
################################################################################
pull:
git pull
chmod 777 files/*
commit:
git commit -a -m "`date`"
# Add/delete my files to/from the GIT repo:
push-mine: $(MYFILES)
git add --all $(MYFILES)
git commit -a -m "Pushed my edited Jade files"
git push
push-notes: files/notes
git add --all files/notes
push-bugs: files/bugs
git add --all files/bugs
################################################################################
### Running from local git sandbox
### Prereqs:
### - Apache, configured so that
### - http://localhost/jade accesses this directory
### - CGI scripts executable from localhost/jade
### (Options ExecCGI, AddHandler cgi-script .cgi)
### - Jade files to be accessed in files
################################################################################
run:
chrome "http://localhost/jade/jade_local.html?modules=$(USER)"
# Alternative run commands, pointing at different module directories:
run-cjt:
chrome "http://localhost/jade/jade_local.html?modules=cjt"
run-ward:
chrome "http://localhost/jade/jade_local.html?modules=ward"
run-notes:
chrome "http://localhost/jade/jade_local.html?modules=notes"
run-bugs:
chrome "http://localhost/jade/jade_local.html?modules=bugs"
# ad-hoc run commands to show various examples:
run-beta:
chrome "http://localhost/jade/jade_local.html?modules=ward&edit=/beta/cjttest"
run-beta-fib:
chrome "http://localhost/jade/jade_local.html?modules=ward&edit=/beta/testjig"
run-mul32:
chrome "http://localhost/jade/jade_local.html?modules=ward&edit=/mul/mul32"
run-bug:
chrome "http://localhost/jade/jade_local.html?modules=ward&edit=/bugs/mul4_1"
# ad-hoc target to show json of a file:
beta-json:
cat files/ward/beta | underscore print
analog.js: files/analog
python icon_only.py files/analog analog.js
gates.js: files/gates
python icon_only.py files/gates gates.js
edx: analog.js gates.js
grunt jade_edx
cp build/FontAwesome.otf build/fontawesome-webfont.* ~/git/6.004_mitx/static/
cp build/jade_edx.min.js build/jade.css ~/git/6.004_mitx/static/labs/
rm jade_edx.zip; zip -j jade_edx.zip build/jade_edx.min.js build/jade.css build/FontAwesome.otf build/fontawesome-webfont.*
standalone: analog.js gates.js
rm build/*
grunt jade
zip -rj jade.zip build
workbook: analog.js gates.js
grunt jade_workbook
cp build/jade_workbook.html build/jade_workbook.min.js build/jade.css build/FontAwesome.otf build/fontawesome-webfont.* ~/git/6004x.github.io/tools/
labs: analog.js gates.js
grunt jade_6004
cp build/jade_6004.html build/jade_6004.min.js build/jade.css build/FontAwesome.otf build/fontawesome-webfont.* ../6.004_labs/ssldocs/coursewarex/