|
|
@ -1,4 +1,8 @@ |
|
|
|
INSTALL_PATH ?= ./build |
|
|
|
CGO_ENABLED ?= 0 |
|
|
|
|
|
|
|
# Build all the things
|
|
|
|
build: build-server build-tools |
|
|
|
|
|
|
|
# Clean up previous builds, vendor directory and generated files
|
|
|
|
clean: |
|
|
@ -25,9 +29,6 @@ build-tools: build-server |
|
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-ensurechannels ./cmd/rpdata-ensurechannels |
|
|
|
go build -ldflags="-s -w" -o $(INSTALL_PATH)/usr/bin/rpdata-as2storyimport ./cmd/rpdata-ensurechannels |
|
|
|
|
|
|
|
# Build all the things
|
|
|
|
build: build-server build-tools |
|
|
|
|
|
|
|
# Install locally (requires access to /usr/bin, hence no dependency on build)
|
|
|
|
install: |
|
|
|
cp $(INSTALL_PATH)/usr/bin/* /usr/local/bin/ |