Compare commits
10 Commits
a8e759bf35
...
76134e2d98
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76134e2d98 | ||
| 31651f1890 | |||
| 961e02ba22 | |||
| 9c4cd399c1 | |||
| d19976afd5 | |||
| eee3fd4fc5 | |||
| 27f807dc76 | |||
| 1b77d06c3b | |||
| 6cbb178b50 | |||
| 43abcb5dbb |
31
.gitignore
vendored
Executable file
31
.gitignore
vendored
Executable file
@@ -0,0 +1,31 @@
|
|||||||
|
# ---> VisualStudioCode
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
!.vscode/*.code-snippets
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Run temp file and dir
|
||||||
|
build
|
||||||
|
release
|
||||||
|
|
||||||
|
|
||||||
|
# Built Visual Studio Code Extensions
|
||||||
|
*.o
|
||||||
|
*.o.ES
|
||||||
|
*.a
|
||||||
|
*.vsix
|
||||||
|
*.log
|
||||||
|
*.log-*
|
||||||
|
*.bak
|
||||||
|
*.bak*
|
||||||
|
*.exe
|
||||||
|
__debug_bin*.exe
|
||||||
|
|
||||||
|
# bin file
|
||||||
|
|
||||||
50
Makefile
50
Makefile
@@ -16,32 +16,54 @@ svc_bin=$(svc_root)/bin
|
|||||||
web_root=$(build_root)/../web.ems
|
web_root=$(build_root)/../web.ems
|
||||||
package_file=$(package_name).tgz
|
package_file=$(package_name).tgz
|
||||||
|
|
||||||
# 获取当前时间
|
|
||||||
current_date=$(shell date "+%Y-%m-%d %H:%M:%S")
|
current_date=$(shell date "+%Y-%m-%d %H:%M:%S")
|
||||||
# 文件路径
|
|
||||||
vfile=$(extra_dir)/emsVersion
|
vfile=$(extra_dir)/emsVersion
|
||||||
# 读取版本信息
|
# get version from emsVersion
|
||||||
version=$(shell grep "Version:" $(vfile) | awk -F' ' '{print $$2}')
|
version=$(shell grep "Version:" $(vfile) | awk -F' ' '{print $$2}')
|
||||||
|
|
||||||
|
src_log=make_src.log
|
||||||
|
plat_log=make_plat.log
|
||||||
|
|
||||||
print-version:
|
print-version:
|
||||||
# 输出版本信息和更新后的日期
|
|
||||||
@echo "Version: $(version)"
|
@echo "Version: $(version)"
|
||||||
@echo "Release Date: $(current_date)"
|
@echo "Release Date: $(current_date)"
|
||||||
|
|
||||||
package:
|
src_all:
|
||||||
|
@echo -n "make all src programs ..."
|
||||||
|
@$(MAKE) -C $(svc_root)/src 1>$(src_log) 2>&1
|
||||||
|
@echo "refer to log $(src_log)"
|
||||||
|
|
||||||
|
plat_all:
|
||||||
|
@echo -n "make all plat modules ..."
|
||||||
|
@$(MAKE) -C $(svc_root)/plat 1>$(plat_log) 2>&1
|
||||||
|
@echo "refer to log $(plat_log)"
|
||||||
|
|
||||||
|
src_clean:
|
||||||
|
$(MAKE) -C $(svc_root)/src src_clean
|
||||||
|
|
||||||
|
plat_clean:
|
||||||
|
$(MAKE) -C $(svc_root)/plat clean
|
||||||
|
|
||||||
|
bin: plat_all src_all
|
||||||
|
|
||||||
|
clean: plat_clean src_clean
|
||||||
|
|
||||||
|
package: bin
|
||||||
|
@echo "prepare build environment ..."
|
||||||
@rm -rf $(package_path)
|
@rm -rf $(package_path)
|
||||||
@mkdir -p $(package_path)
|
@mkdir -p $(package_path)
|
||||||
@echo "cp bin dir to build dir"
|
@echo "copy bin to build directory ..."
|
||||||
@cp -rf $(svc_bin) $(package_path)
|
@cp -rf $(svc_bin) $(package_path)
|
||||||
@echo "update release date"
|
@echo "update release date ..."
|
||||||
@sed -i "s/Release Date:.*/Release Date: $(current_date)/" $(vfile)
|
@sed -i "s/Release Date:.*/Release Date: $(current_date)/" $(vfile)
|
||||||
@echo "cp extra file to build dir"
|
@echo "copy extra file to build directory ..."
|
||||||
@cp -rf $(extra_dir)/* $(package_path)
|
@cp -rf $(extra_dir)/* $(package_path)
|
||||||
@echo "cp web file to build dir"
|
@echo "copy web file to build directory ..."
|
||||||
@mkdir -p $(package_path)/web
|
@mkdir -p $(package_path)/web
|
||||||
@cp -rf $(web_root)/* $(package_path)/web
|
@cp -rf $(web_root)/* $(package_path)/web
|
||||||
# cd $(build_dir)
|
@echo "build package $(package_file) ..."
|
||||||
@echo "build package $(package_file)"
|
|
||||||
@tar cvfz $(build_dir)/$(package_file) -C $(build_dir) $(package_name) >/dev/null
|
@tar cvfz $(build_dir)/$(package_file) -C $(build_dir) $(package_name) >/dev/null
|
||||||
@echo "move $(package_file) to $(release_dir)"
|
@echo "move $(package_file) to $(release_dir) ..."
|
||||||
@mv -f $(build_dir)/$(package_file) $(release_dir)
|
@mv -f $(build_dir)/$(package_file) $(release_dir)
|
||||||
|
@echo "clear temp build directory ..."
|
||||||
|
@rm -rf $(package_path)
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
Version:emsInstall r2409.2
|
Version:emsInstall r2409.2
|
||||||
Release Date:2024-09-27 14:15:00
|
Release Date: 2024-10-19 19:02:15
|
||||||
|
|||||||
0
extra/wxc2_emsInstall
Normal file → Executable file
0
extra/wxc2_emsInstall
Normal file → Executable file
Reference in New Issue
Block a user