GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
563 B

  1. INSTALL_PATH ?= ./build
  2. build:
  3. dep ensure
  4. go generate ./...
  5. go test ./...
  6. mkdir -p $(INSTALL_PATH)/usr/bin
  7. mkdir -p $(INSTALL_PATH)/etc/aiterp
  8. cp ./config.example.json $(INSTALL_PATH)/etc/aiterp/rpdata.json
  9. go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-graphiql ./cmd/rpdata-graphiql
  10. go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-lb2charimport ./cmd/rpdata-lb2charimport
  11. go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-lb2logimport ./cmd/rpdata-lb2logimport
  12. install:
  13. cp $(INSTALL_PATH)/usr/bin/* /usr/local/bin/