generated from beryllium-org/jpkg-template-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
22 lines (22 loc) · 889 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SHELL = bash
all:
@echo -e "JPKG package builder.\n\nUsage:\n\tmake package\n\tmake clean"
update_modules:
@echo "Updating git submodules from remotes.."
@git submodule update --init --recursive --remote .
@echo -e "Submodules ready\n\nMake sure to git commit before procceding to make!!"
modules:
@echo "Preparing git submodules.."
@git submodule update --init --recursive .
@echo "Submodules ready"
package: rminst modules geninst
@python3 -u scripts/generate_package.py
clean: rminst
@if [ -e "axp2101utils.jpk" ]; then rm axp2101utils.jpk; fi
@if find "files" -maxdepth 1 -name '*.mpy' | grep -q .; then rm files/*.mpy; fi
geninst:
@python3 -u scripts/gen_install_scripts.py
rminst:
@if [ -e "files/installer.py" ]; then rm files/installer.py; fi
@if [ -e "files/strap.py" ]; then rm files/strap.py; fi
@if [ -e "files/uninstaller.py" ]; then rm files/uninstaller.py; fi