加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 831 Bytes
一键复制 编辑 原始数据 按行查看 历史
brt3 提交于 2019-03-10 11:04 . Merge from dev@90120cc without business-code
PROJECT_NAME = weak
INSTALL_PATH = $(HOME)/bin/$(PROJECT_NAME)
GEN_PYC_EXE = ./frw/gen_pyc.py
BUILD_PATH = ./vbuild
.PHONY: build install clean
build:
@echo "build..."
@python $(GEN_PYC_EXE) ./ -e $(BUILD_PATH) -f
@cp -r ./gui/conf $(BUILD_PATH)/gui/conf
@cp -r ./gui/res $(BUILD_PATH)/gui/res
@cp -r ./gui/ui $(BUILD_PATH)/gui/ui
@rm -rf $(BUILD_PATH)/thinking/
@rm $(BUILD_PATH)/frw/gen_pyc.pyc
compile:
@echo "compile..."
@python $(GEN_PYC_EXE) ./ -f
install: build
@echo "install..."
@test ! -d $(INSTALL_PATH) || rm -rf $(INSTALL_PATH)
@mv -f $(BUILD_PATH) $(INSTALL_PATH)
clean:
@test ! -d $(BUILD_PATH) || rm -rf $(BUILD_PATH)
@#find ./ -type d -name __pycache__ -exec rm -r {} \; # -exec rm 报错,终止make
@find ./ -type d -name __pycache__ | xargs rm -rf
@#find ./ -name "*.pyc" | xargs rm
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化