enhance: make commands are more readable inside builder/Makefile

This commit is contained in:
ful1e5 2021-11-21 16:13:46 +05:30
parent 096abde703
commit da7beec6a4
2 changed files with 5 additions and 10 deletions

View file

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Bibata Zebra](https://github.com/ful1e5/Bibata-Zebra-Cursor) link added inside README.md - [Bibata Zebra](https://github.com/ful1e5/Bibata-Zebra-Cursor) link added inside README.md
- [Bibata Bee](https://github.com/ful1e5/Bibata-Bee-Cursor) link added inside README.md - [Bibata Bee](https://github.com/ful1e5/Bibata-Bee-Cursor) link added inside README.md
- tidy docs inside `README.md` - tidy docs inside `README.md`
- make commands are more readable inside `builder/Makefile`
### Changed ### Changed

View file

@ -1,42 +1,36 @@
all: setup build all: setup build
bitmaps_dir = "../bitmaps"
.PHONY: all .PHONY: all
.ONESHELL: .ONESHELL:
SHELL:=/bin/bash SHELL:=/bin/bash
THEMES = Amber Classic Ice bitmaps_dir = "../bitmaps"
X_SIZES ?= 22 24 28 32 40 48 56 64 72 80 88 96 X_SIZES ?= 22 24 28 32 40 48 56 64 72 80 88 96
WIN_CANVAS_SIZE ?= 32 WIN_CANVAS_SIZE ?= 32
WIN_SIZE ?= 24 WIN_SIZE ?= 24
THEMES = Amber Classic Ice
setup: setup:
@python3 -m pip install clickgen --user @python3 -m pip install clickgen --user
build: build_modern build_original build: build_modern build_original
build_modern: build.py build_modern: build.py
@$(foreach theme,$(THEMES), python3 build.py -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);) @$(foreach theme,$(THEMES), python3 build.py -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);)
build_original: build.py build_original: build.py
@$(foreach theme,$(THEMES), python3 build.py -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);) @$(foreach theme,$(THEMES), python3 build.py -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);)
build_unix: build_modern_unix build_original_unix build_unix: build_modern_unix build_original_unix
build_modern_unix: build.py build_modern_unix: build.py
@$(foreach theme,$(THEMES), python3 build.py unix -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --xsizes $(X_SIZES);) @$(foreach theme,$(THEMES), python3 build.py unix -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --xsizes $(X_SIZES);)
build_original_unix: build.py build_original_unix: build.py
@$(foreach theme,$(THEMES), python3 build.py unix -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --xsizes $(X_SIZES);) @$(foreach theme,$(THEMES), python3 build.py unix -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --xsizes $(X_SIZES);)
build_windows: build_modern_windows build_original_windows build_windows: build_modern_windows build_original_windows
build_modern_windows: build.py build_modern_windows: build.py
@$(foreach theme,$(THEMES), python3 build.py windows -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);) @$(foreach theme,$(THEMES), python3 build.py windows -p "$(bitmaps_dir)/Bibata-Modern-$(theme)" --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);)
build_original_windows: build.py build_original_windows: build.py
@$(foreach theme,$(THEMES), python3 build.py windows -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);) @$(foreach theme,$(THEMES), python3 build.py windows -p "$(bitmaps_dir)/Bibata-Original-$(theme)" --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE);)