Skip to content

Commit 32133e3

Browse files
committed
Improvements to website makefile.
1 parent 85cd597 commit 32133e3

1 file changed

Lines changed: 19 additions & 26 deletions

File tree

www/Makefile

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,37 @@
11
course = main
22

3-
.PHONY : all clean test
3+
.PHONY : all clean test scribble zips
44

55
all: clean $(course)
66

77
test: clean
88
raco test .
99

10-
$(course):
11-
raco scribble --htmls \
12-
++style css/extra.css \
13-
++style css/fancyverb.css \
14-
++extra js/accessibility.js \
15-
++xref-in setup/xref load-collections-xref \
16-
--redirect-main http://docs.racket-lang.org/ \
17-
$(course).scrbl
18-
mkdir -p $(course)/code/
10+
$(course): scribble zips
11+
12+
zips:
13+
mkdir -p $(course)/code/
1914
cd ../langs ; \
2015
tar -c `git ls-files intro a86 abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity jig knock loot mug mountebank neerdowell fp project.pdf` \
2116
a86/main.c a86/gcd.c a86/tri.s abscond/42.s | \
2217
(cd ../www/main/code ; tar -x ; \
23-
zip -c abscond.zip -r abscond/ ; \
24-
zip -c blackmail.zip -r blackmail/ ; \
25-
zip -c con.zip -r con/ ; \
26-
zip -c dupe.zip -r dupe/ ; \
27-
zip -c dodger.zip -r dodger/ ; \
28-
zip -c evildoer.zip -r evildoer/ ; \
29-
zip -c extort.zip -r extort/ ; \
30-
zip -c fraud.zip -r fraud/ ; \
31-
zip -c hustle.zip -r hustle/ ; \
32-
zip -c hoax.zip -r hoax/ ; \
33-
zip -c iniquity.zip -r iniquity/ ; \
34-
zip -c jig.zip -r jig/ ; \
35-
zip -c knock.zip -r knock/ ; \
36-
zip -c loot.zip -r loot/ ; \
37-
zip -c knock.zip -r mug/ ; \
38-
zip -c knock.zip -r mountebank/) ; cd ../..
18+
for f in abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity jig knock loot mug mountebank ; do \
19+
zip $${f}.zip -r $${f}/ ; \
20+
done )
3921
cd slides ; \
4022
tar -c `git ls-files ocaml-to-racket.pdf abscond.pdf con.pdf dupe.pdf extort.pdf grift.pdf grift2.pdf hustle.pdf` | \
4123
(cd ../main/code ; tar -x) ; cd ../..
4224

25+
scribble:
26+
raco scribble --htmls \
27+
++style css/extra.css \
28+
++style css/fancyverb.css \
29+
++extra js/accessibility.js \
30+
++xref-in setup/xref load-collections-xref \
31+
--redirect-main http://docs.racket-lang.org/ \
32+
$(course).scrbl
33+
34+
35+
4336
clean:
4437
rm -rf $(course)

0 commit comments

Comments
 (0)