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.
17 lines
771 B
17 lines
771 B
INSTALL_PATH ?= ./build
|
|
|
|
build:
|
|
dep ensure
|
|
go generate ./...
|
|
go test ./...
|
|
mkdir -p $(INSTALL_PATH)/usr/bin
|
|
mkdir -p $(INSTALL_PATH)/etc/aiterp
|
|
cp ./config.example.json $(INSTALL_PATH)/etc/aiterp/rpdata.json
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-graphiql ./cmd/rpdata-graphiql
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-lb2charimport ./cmd/rpdata-lb2charimport
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-lb2logimport ./cmd/rpdata-lb2logimport
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-wikifileimport ./cmd/rpdata-wikifileimport
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-ensurechannels ./cmd/rpdata-ensurechannels
|
|
|
|
install:
|
|
cp $(INSTALL_PATH)/usr/bin/* /usr/local/bin/
|