代码拉取完成,页面将自动刷新
同步操作将从 openKylin/genmai 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#//////////////////////////////////////////////////////////////////
#//
#// Filename: Makefile
#//
#// Version: 1.0
#// Created: 2022年10月25日 23时10分18秒
#// Revision: none
#//
#// Author: alpha
#// Organization: alpha
#// Contacts: chenxinquan@kylinos.cn
#//
#//////////////////////////////////////////////////////////////////
#
#//////////////////////////////////////////////////////////////////
#// Description:
#//////////////////////////////////////////////////////////////////
#
#//////////////////////////////////////////////////////////////////
#// Log:
#//////////////////////////////////////////////////////////////////
#
#//////////////////////////////////////////////////////////////////
#// Todo:
#//
#//////////////////////////////////////////////////////////////////
PRO_NAME = genmai
PRO_VERSION = 2022.10.25
#PRO_TOP_DIR=${.CURDIR}
PRO_TOP_DIR = $(shell pwd)
BUILD_DIR = ${PRO_TOP_DIR}/build
SRC_DIR = ${PRO_TOP_DIR}/src
BIN_DIR = ${PRO_TOP_DIR}/bin
# TODO: make it can configurable
MAKE = make
GO_COMPILER := GO111MODULE=on go
all: build
build::
clean::
realclean::
################################################################
# pre
build:: pre-build
pre-build:
if [ ! -d ${BUILD_DIR} ]; then mkdir ${BUILD_DIR}; fi
################################################################
# begin
build:: begin-build
clean:: begin-clean
realclean:: begin-realclean
begin-build:
@echo
@echo "----------------------------------------------------------------"
@echo " >>> Building genmai (version ${PRO_VERSION})"
@echo "----------------------------------------------------------------"
begin-clean:
@echo
@echo "----------------------------------------------------------------"
@echo " >>> Cleaning project"
@echo "----------------------------------------------------------------"
begin-realclean:
@echo
@echo "----------------------------------------------------------------"
@echo " >>> Cleaning project"
@echo "----------------------------------------------------------------"
################################################################
# genmai
build:: genmai-build
clean:: genmai-clean
realclean:: genmai-realclean
GENMAI_DIR= ${PRO_TOP_DIR}/genmai
genmai-build: pre-build
@echo ">"
cd ${SRC_DIR} && ${GO_COMPILER} build -o ${BUILD_DIR}
genmai-clean:
@echo ">"
if [ -e ${BUILD_DIR} ]; then rm -rf ${BUILD_DIR}; fi
genmai-realclean:
@echo ">"
if [ -e ${BUILD_DIR} ]; then rm -rf ${BUILD_DIR}; fi
################################################################
# end
build:: end-build
clean:: end-clean
realclean:: end-realclean
end-build:
@echo
@echo "----------------------------------------------------------------"
@echo " >>> Built genmai successfully"
@echo "----------------------------------------------------------------"
end-clean:
@echo "----------------------------------------------------------------"
@echo " >>> Cleaned project successfully"
@echo "----------------------------------------------------------------"
end-realclean:
@echo "----------------------------------------------------------------"
@echo " >>> Cleaned project successfully"
@echo "----------------------------------------------------------------"
################################################################
# help
help:
@echo
@echo "----------------------------------------------------------------"
@echo " >>> Help"
@echo "----------------------------------------------------------------"
@echo "Building targets:"
@echo "all -- build genmai source tree."
@echo "build -- build all source tree."
@echo
@echo "Cleaning targets:"
@echo "clean -- remove 'build' directory"
@echo "realclean -- clean everything was built"
@echo
################################################################
################################################################
# utils
run: build
${BUILD_DIR}/main -system -kernel
test: clean build
${BUILD_DIR}/main -system -kernel
.PHONY: all genmai
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。