diff --git a/.gitignore b/.gitignore index f7527c2..c3dec52 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .setup *.rkt~ *.swp +.env +.envrc diff --git a/Makefile b/Makefile index ebaf0f6..329e61b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all test +.PHONY: all test run all: .setup raco setup smol-http @@ -7,6 +7,15 @@ all: .setup 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 $@