More basic setup lol
This commit is contained in:
parent
ae1c6cbeb2
commit
22d6f54fa5
|
@ -2,3 +2,5 @@
|
|||
.setup
|
||||
*.rkt~
|
||||
*.swp
|
||||
.env
|
||||
.envrc
|
||||
|
|
11
Makefile
11
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 $@
|
||||
|
|
Loading…
Reference in New Issue