1 Star 0 Fork 22

freehu/zeus-admin

forked from bullteam/zeus-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2019-10-22 23:03 . fixed makefile
SHELL := /bin/bash
BASE_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
TITLE := $(shell basename $(BASE_PATH))
SHORT_REV := $(shell git rev-parse HEAD | cut -c1-8)
BUILD_TIME := $(shell date +%Y-%m-%d--%T)
APP_PKG := $(shell $(BASE_PATH)/scripts/apppkg.sh)
UI := $(BASE_PATH)/pkg/webui
TAG := $(shell $(BASE_PATH)/scripts/tag.sh)
export BIN_OUT := $(BASE_PATH)/bin
package: ui build docker
print:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making print<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@echo SHELL:$(SHELL)
@echo BASE_PATH:$(BASE_PATH)
@echo TITLE:$(TITLE)
@echo SHORT_REV:$(SHORT_REV)
@echo APP_PKG:$(APP_PKG)
@echo BIN_OUT:$(BIN_OUT)
@echo USER:$(USER)
@echo HUB:$(HUB)
@echo UI:$(UI)
@echo TAG:$(TAG)
@echo -e "\n"
build:
@echo -e ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>compile server<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
$(BASE_PATH)/scripts/build.sh
@echo -e "\n"
run:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run directly<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
$(shell $(BASE_PATH)/scripts/run.sh)
@echo -e "\n"
ui:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>compile ui<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
$(BASE_PATH)/scripts/ui.sh
@echo -e "\n"
docker:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>docker build & push<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
$(BASE_PATH)/scripts/docker.sh ${tag}
@echo -e "\n"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/freehu/zeus-admin.git
git@gitee.com:freehu/zeus-admin.git
freehu
zeus-admin
zeus-admin
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385