From 57a2e1dbac1107c01e256a37a7f3f5ebffe49821 Mon Sep 17 00:00:00 2001 From: haskal Date: Sun, 12 Apr 2020 02:03:06 -0400 Subject: [PATCH] Fix makefile --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a22360f..50ac862 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -.PHONY: all test run +.PHONY: all test run clean -SOURCES=$(shell git ls-tree -r master --name-only) +SOURCES=Makefile README.md private/util.rkt secret_flags smol-http/http-msg.rkt smol-http/info.rkt smol-http/main.rkt smol-http/util.rkt webcrawler CCIS_TEAM_NAME=hash-lang-uwu CCIS_PROJECT_NAME=project4 CCIS_SERVER=login.ccs.neu.edu @@ -25,7 +25,7 @@ endif ./webcrawler -d $(FB_USERNAME) $(FB_PASSWORD) .setup: - raco pkg install smol-http/ + -raco pkg install smol-http/ @touch $@ upload: $(SOURCES) @@ -34,3 +34,8 @@ upload: $(SOURCES) submit: upload ssh $(CCIS_SERVER) -t -- "cd $(CCIS_PATH); make clean; $(CCIS_TURNIN) $(CCIS_PROJECT_NAME) ." + +clean: + $(RM) .setup + find . \( -iname '*.zo' -o -iname '*.dep' \) -delete + find . -type d -iname compiled -delete