Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (42 loc) · 1.84 KB
/
Copy pathMakefile
File metadata and controls
47 lines (42 loc) · 1.84 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: default
default:
@echo "No target specified. Please use 'make <target>' to run a specific task."
.PHONY: clean
clean:
@echo "cleaning Rive download markers.."
@ [ ! -e ios/rive_marker_ios_setup_complete ] || rm ios/rive_marker_ios_setup_complete
@ [ ! -e ios/rive_marker_ios_development ] || rm ios/rive_marker_ios_development
@ [ ! -e macos/rive_marker_macos_setup_complete ] || rm macos/rive_marker_macos_setup_complete
@ [ ! -e macos/rive_marker_macos_development ] || rm macos/rive_marker_macos_development
@ [ ! -e windows/rive_marker_windows_development ] || rm windows/rive_marker_windows_development
@ [ ! -e windows/rive_marker_windows_setup_complete ] || rm windows/rive_marker_windows_setup_complete
@echo "clean complete"
.PHONY: update_cpp_runtime
update_cpp_runtime:
@rsync -av --exclude-from='runtime_exclude.txt' --delete --delete-excluded ../runtime/ runtime
@echo "\nRive runtime updated\n"
@echo "Testing if the shaders/Makefile exists.."
@if [ -e runtime/renderer/src/shaders/Makefile ]; then \
echo "Makefile exists, renaming it to Makefile.rive\n"; \
mv runtime/renderer/src/shaders/Makefile runtime/renderer/src/shaders/Makefile.rive; \
else \
>&2 echo "\033[1;31mERROR: Makefile does not exist, nothing to rename. Pub builds may fail.\033[0m"; \
exit 1; \
fi
.PHONY: publish_pub
publish_pub:
@echo "publishing.."
@make clean
@make update_cpp_runtime
@echo "todo dowload all hash files, put in the correct directory"
@echo "todo update hash checks to use package versions"
@echo "todo actually run flutter pub publish"
@echo "publish complete"
# Show help
.PHONY: help
help:
@echo "Available targets:"
@echo " clean - Clean up generated files"
@echo " update_cpp_runtime - Update rive_native cpp runtime"
@echo " publish_pub - Publish rive_native to Pub"
@echo " help - Show this help message"