-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 909 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This Makefile is only necessary to build a optimized release build.
# The plugin will work when put in the addons dir without being "built".
BUILD_ROOT_DIR := build
BUILD_FILES_DIR := $(BUILD_ROOT_DIR)/source
ZIP_PATH := $(BUILD_ROOT_DIR)/GodotTogether.zip
ESSENTIAL_ROOT_PATHS := src plugin.cfg .gitignore install_instructions.txt LICENSE
.PHONY: release build clean
release: build
rm -f $(ZIP_PATH)
cd $(BUILD_FILES_DIR) && zip -r ../../$(ZIP_PATH) .
@echo ""
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
@echo " Make sure create a .gdsig signature if you're publishing this!"
@echo " Otherwise auto update will NOT work!"
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
@echo ""
build:
mkdir -p $(BUILD_FILES_DIR)
touch $(BUILD_ROOT_DIR)/.gdignore
cp -r $(ESSENTIAL_ROOT_PATHS) $(BUILD_FILES_DIR)
clean:
rm -rf $(BUILD_ROOT_DIR)