all: app scraper

app: _go_deps _js_deps _ln_deps
	go build -o ../build/server ./app/*.go

_js_deps:
	cd web && npm install && node_modules/@angular/cli/bin/ng build --prod --aot && npm run sw

_ln_deps:
	mkdir -p ../build/
	mkdir -p ../build/static
	ln -s ../src/web/dist ../build/
	ln -s ../src/scripts/db_dump.sh ../build/
	ln -s ../src/analysis/stations-coordinates.csv ../build/

scraper: _go_deps
	go build -o ../build/scraper ./main/scraper/*.go

_go_deps:
	go get ./...

all: app scraper test

app: _go_deps _js_deps _ln_deps
	go build -o ../build/server ./app/*.go

_js_deps:
	cd web && npm install && node_modules/@angular/cli/bin/ng build --prod --aot && npm run sw

_ln_deps:
	mkdir -p ../build/
	mkdir -p ../build/static
	ln -s ../src/web/dist ../build/
	ln -s ../src/scripts/db_dump.sh ../build/
	ln -s ../src/analysis/stations-coordinates.csv ../build/

scraper: _go_deps
	go build -o ../build/scraper ./main/scraper/*.go

_go_deps:
	go get -u ./...

test: _go_deps
	go test ./...

Add go testing to deployment script
Add go testing to deployment script
