Вариант сборки, в котором функции объединены в один файл

This commit is contained in:
2023-09-14 14:17:16 +03:00
parent 95ba4ba50a
commit acc54d4835
8 changed files with 58 additions and 8 deletions

View File

@ -3,8 +3,10 @@ TOP_DIR:=$(shell pwd)
BUILD_DIR:=$(TOP_DIR)/build
DEB_DIR:=$(BUILD_DIR)/deb/myx-cmake-$(V)
PACK_DIR:=$(BUILD_DIR)/pack/myx-cmake-$(V)
UNITY_DIR:=$(BUILD_DIR)/unity
UNITY_V_DIR:=$(BUILD_DIR)/myx-cmake-unity-$(V)
all: v deb pack
all: v deb pack unity
v:
sed -i "s/\/[0-9][0-9.]\+/\/$V/g" $(TOP_DIR)/README.md
@ -30,6 +32,15 @@ pack:
cp -ap $(TOP_DIR)/myx_setup.cmake $(PACK_DIR)
cd $(PACK_DIR); tar acf $(BUILD_DIR)/myx-cmake-local-$(V).tar.xz *
unity:
rm -rf $(UNITY_DIR)
rm -rf $(UNITY_V_DIR)
mkdir -p $(UNITY_DIR)
python3 myx-unity.py > $(UNITY_DIR)/m.cmake
mv $(UNITY_DIR)/m.cmake $(UNITY_DIR)/myx/MyxCMakeConfig.cmake
mv $(UNITY_DIR) $(UNITY_V_DIR)
cd $(UNITY_V_DIR); tar acf $(BUILD_DIR)/myx-cmake-unity-$(V).tar.xz *
upload:
git tag $(V)
gitea-tea r c --repo cmake/myx -t $(V) --tag $(V) \
@ -37,5 +48,6 @@ upload:
-a $(BUILD_DIR)/myx-cmake_$(V).tar.xz \
-a $(BUILD_DIR)/myx-cmake_$(V)_all.deb \
-a $(BUILD_DIR)/myx-cmake-local-$(V).tar.xz
-a $(BUILD_DIR)/myx-cmake-unity-$(V).tar.xz
git tag -d $(V)
git push