chore: more spring cleaning and refactoring
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,9 +1,10 @@
|
||||
.PHONY: help all readme validate add-app normalize publish publish-dry-run publish-from-file test test-app test-verbose
|
||||
.PHONY: help all readme validate add-app normalize build publish publish-dry-run publish-from-file test test-app test-verbose
|
||||
default: help
|
||||
|
||||
help: # Show help for each of the makefile recipes.
|
||||
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; \
|
||||
do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
|
||||
@width=$$(grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | cut -f1 -d':' | awk '{print length}' | sort -rn | head -1); \
|
||||
grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; \
|
||||
do printf "\033[1;32m%-$${width}s\033[00m %s\n" "$$(echo $$l | cut -f 1 -d':')" "$$(echo $$l | cut -f 2- -d'#')"; done
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Apps
|
||||
@@ -31,7 +32,7 @@ test-verbose: # Live-test with APK URL details shown
|
||||
# Build
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
release: validate normalize readme minify minify-dual-screen # Run all Make targets related to cutting a release.
|
||||
build: validate normalize readme minify minify-dual-screen # Build all artifacts: validate, normalize, readme, and both release JSONs.
|
||||
|
||||
minify: # Generate standard release JSON
|
||||
@python scripts/minify-json.py src/applications.json obtainium-emulation-pack-latest.json --variant standard
|
||||
|
||||
Reference in New Issue
Block a user