-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1.12 KB
/
Makefile
File metadata and controls
44 lines (34 loc) · 1.12 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
course = main
.PHONY : all clean test scribble zips push
all: clean $(course)
test: clean
raco test .
$(course): scribble zips
langs = abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw
assigns = hoax-plus
zips:
mkdir -p $(course)/code/
(cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "langs")))'` ; \
tar -c `git ls-files $(langs)`) | \
(cd $(course)/code/ ; tar -x ; \
for f in $(langs) ; do \
zip $${f}.zip -r $${f}/ ; \
done)
(cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "assignments")))'` ; \
tar -c `git ls-files $(assigns)`) | \
(cd $(course)/code/ ; tar -x ; \
for f in $(assigns) ; do \
zip $${f}.zip -r $${f}/ ; \
done)
scribble:
raco scribble --htmls \
++style css/extra.css \
++style css/fancyverb.css \
++extra js/accessibility.js \
++xref-in setup/xref load-collections-xref \
--redirect-main http://docs.racket-lang.org/ \
$(course).scrbl
push:
rsync -rvzp main/ dvanhorn@junkfood.cs.umd.edu:/fs/www/class/fall2025/cmsc430/
clean:
rm -rf $(course)