aboutsummaryrefslogtreecommitdiff
path: root/assignments/Makefile.assignment
diff options
context:
space:
mode:
Diffstat (limited to 'assignments/Makefile.assignment')
-rw-r--r--assignments/Makefile.assignment8
1 files changed, 8 insertions, 0 deletions
diff --git a/assignments/Makefile.assignment b/assignments/Makefile.assignment
new file mode 100644
index 0000000..d05662f
--- /dev/null
+++ b/assignments/Makefile.assignment
@@ -0,0 +1,8 @@
+all: $(DIR)/$(A).pdf
+
+$(DIR)/$(A).pdf: $(DIR)/$(A).md
+ @echo pandoc $(A).md
+ @cd $(DIR); pandoc $(patsubst $(DIR)/%,%,$<) -o $(patsubst $(DIR)/%,%,$@)
+
+clean:
+ @rm -f $(DIR)/$(A).pdf