From c636933c775f57d3c7e717c03cd823ac05744cb2 Mon Sep 17 00:00:00 2001 From: nanxuezhi <1562985905@coolpad.com> Date: Mon, 1 Jul 2019 13:59:20 +0800 Subject: [PATCH] =?UTF-8?q?makefile=E6=9C=89=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 23ba524..0000000 --- a/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -GO_CMD=go -PANDORA_BIN=pandora_bin -PANDORA_BIN_PATH=./output/bin -PANDORA_ETC_PATH=./output/etc -PANDORA_PUBLIC_PATH=./output/public -PANDORA_LOG_PATH=./output/log -PANDORA_RES_PATH=./output/resource - -.PHONY: all -all: clean build install - -.PHONY: linux -linux: clean build-linux install - -.PHONY: build -build: - @echo "build pandora start >>>" - GOPROXY=https://goproxy.io $(GO_CMD) mod tidy - $(GO_CMD) build -o $(PANDORA_BIN) ./pandora/main.go - @echo ">>> build pandora complete" - -.PHONY: install -install: - @echo "install pandora start >>>" - mkdir -p $(PANDORA_BIN_PATH) - mv $(PANDORA_BIN) $(PANDORA_BIN_PATH)/pandora - mkdir -p $(PANDORA_ETC_PATH) - cp ./pandora.ini $(PANDORA_ETC_PATH) - cp -r ./public $(PANDORA_PUBLIC_PATH) - mkdir -p $(PANDORA_LOG_PATH) - cp -r ./resource $(PANDORA_RES_PATH) - @echo ">>> install pandora complete" - -.PHONY: clean -clean: - @echo "clean start >>>" - rm -fr ./output - rm -f $(PANDORA_BIN) - @echo ">>> clean complete" - -.PHONY: build-linux -build-linux: - @echo "build-linux start >>>" - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO_CMD) build -o $(PANDORA_BIN) ./pandora/main.go - @echo ">>> build-linux complete" \ No newline at end of file