Skip to content

Commit 8ead847

Browse files
committed
Add helpful Makefile
1 parent 2c6e4f4 commit 8ead847

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.run
33
*~
44
compiled/
5+
*.zip

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
%.zip: $(shell find . -name "$*/*.rkt" -o -name "$*/*.[ch]" -o -name "Makefile")
2+
-$(RM) $@
3+
zip -r $@ $* \
4+
-x \*.[os] \
5+
-x \*.DS_Store \
6+
-x \*~ \
7+
-x \*zip \
8+
-x \*Zone.Identifier \
9+
-x \*\*compiled\*\*
10+
11+
.PHONY: clean
12+
13+
clean:
14+
-$(RM) *.zip

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# assignments
1+
# CMSC 430 Assignment Starter Code
2+
3+
Each directory contains the starter code for a course assignment. As with the
4+
[course languages](https://github.com/cmsc430/langs), they increase in
5+
complexity in lexicographic order.
6+
7+
A [Makefile](Makefile) is provided to build starter zips. Invoke with `make
8+
<assignment-dir>.zip`, e.g., `make dupe-plus.zip`. This will exclude any
9+
undesirable files (`.o` files, `compiled/` subdirectories, etc).

0 commit comments

Comments
 (0)