More basic setup lol
This commit is contained in:
parent
ae1c6cbeb2
commit
22d6f54fa5
|
@ -2,3 +2,5 @@
|
||||||
.setup
|
.setup
|
||||||
*.rkt~
|
*.rkt~
|
||||||
*.swp
|
*.swp
|
||||||
|
.env
|
||||||
|
.envrc
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: all test
|
.PHONY: all test run
|
||||||
|
|
||||||
all: .setup
|
all: .setup
|
||||||
raco setup smol-http
|
raco setup smol-http
|
||||||
|
@ -7,6 +7,15 @@ all: .setup
|
||||||
test: .setup
|
test: .setup
|
||||||
raco test -p smol-http
|
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:
|
.setup:
|
||||||
raco pkg install smol-http/
|
raco pkg install smol-http/
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
Loading…
Reference in New Issue