|
1 | 1 | course = main |
2 | 2 |
|
3 | | -.PHONY : all clean test |
| 3 | +.PHONY : all clean test scribble zips |
4 | 4 |
|
5 | 5 | all: clean $(course) |
6 | 6 |
|
7 | 7 | test: clean |
8 | 8 | raco test . |
9 | 9 |
|
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/ |
19 | 14 | cd ../langs ; \ |
20 | 15 | 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` \ |
21 | 16 | a86/main.c a86/gcd.c a86/tri.s abscond/42.s | \ |
22 | 17 | (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 ) |
39 | 21 | cd slides ; \ |
40 | 22 | tar -c `git ls-files ocaml-to-racket.pdf abscond.pdf con.pdf dupe.pdf extort.pdf grift.pdf grift2.pdf hustle.pdf` | \ |
41 | 23 | (cd ../main/code ; tar -x) ; cd ../.. |
42 | 24 |
|
| 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 | + |
43 | 36 | clean: |
44 | 37 | rm -rf $(course) |
0 commit comments