From 5ff27d91f8f96b08ffb80fbc80779f6ffe44b0d9 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sun, 1 Oct 2023 22:55:05 -0500 Subject: [PATCH] make --- .gitignore | 3 ++- assignments/hwk01/Makefile | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e600442..3d8c46a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.asv .vscode -*.pdf \ No newline at end of file +*.pdf +*.zip \ No newline at end of file diff --git a/assignments/hwk01/Makefile b/assignments/hwk01/Makefile index 67af790..1ac27ea 100644 --- a/assignments/hwk01/Makefile +++ b/assignments/hwk01/Makefile @@ -1,2 +1,15 @@ -watch: - watchexec -e md -- pandoc HW1.md -o HW1.pdf \ No newline at end of file +.PHONY: handin clean + +handin: hw1_sol.pdf hw1_code.zip + +clean: + rm -f hw1_sol.pdf hw1_code.zip + +hw1_sol.pdf: HW1.md + pandoc $^ -o $@ + +hw1_code.zip: HW1_script.m MLE_Learning.m Bayes_Learning.m Bayes_Testing.m testing_data.txt training_data.txt validation_data.txt + zip hw1_code.zip -r $^ + +watch-pdf: + watchexec -e md -- make hw1_sol.pdf \ No newline at end of file