20 lines
318 B
Makefile
20 lines
318 B
Makefile
.PHONY: build test run install fixture install-script
|
|
|
|
build:
|
|
go build -o bin/hp-viz ./cmd/hp-viz/
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
install: build
|
|
cp bin/hp-viz $(DESTDIR)/usr/local/bin/
|
|
|
|
install-script:
|
|
bash scripts/install.sh
|
|
|
|
fixture:
|
|
./bin/hp-viz --fixture tests/fixtures/sse-sample.txt
|
|
|
|
run:
|
|
./bin/hp-viz --url $(URL)
|