Fixed wikiauth compile error, moved build to the top of makefile

This commit is contained in:
2018-06-17 22:57:34 +02:00
parent 0ad72cc72a
commit 7f49f8c4b5
2 changed files with 4 additions and 8 deletions
Generated
-5
View File
@@ -1,11 +1,6 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
branch = "master"
name = "git.aiterp.net/aiterp/wikiauth"
packages = ["."]
revision = "d73e1a0802728a5559e6e870ce14bfdac3901ed8"
[[projects]]
branch = "master"
+4 -3
View File
@@ -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/