CS3700-project4/Makefile

22 lines
350 B
Makefile

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