CS3700-project4/Makefile

22 lines
345 B
Makefile

.PHONY: all test run
all: .setup
raco setup smol-http
raco make webcrawler
test: .setup
raco test -p smol-http
run: all
ifndef FB_USERNAME
$(error "Provide FB_USERNAME variable")
endif
ifndef FB_PASSWORD
$(error "Provide FB_PASSWORD variable")
endif
./webcrawler $(USERNAME) $(PASSWORD)
.setup:
raco pkg install smol-http/
@touch $@