feat: prepare command added inside Makefile

This commit is contained in:
ful1e5
2021-11-12 16:07:12 +05:30
parent 5844450e1e
commit bf002c209d
3 changed files with 20 additions and 5 deletions
+4 -5
View File
@@ -1,10 +1,9 @@
########## Custom
# Custom
bitmaps
themes
builder/files.txt
########## Python
bin
# Python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
@@ -136,7 +135,7 @@ dmypy.json
.pyre/
######### Node
# --------------------------------------------- Nodejs
# Logs
logs
+1
View File
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Makefile` command with `THEME_PREFIX` variable
- distributed pling products docs inside `pling` directory
- `prepare` command added inside `Makefile`
### Changed
+15
View File
@@ -51,3 +51,18 @@ uninstall:
@fi
reinstall: uninstall install
# generates binaries
BIN_DIR = ../bin
THEMES = Dark Light Black
prepare: bitmaps themes
@rm -rf bin && mkdir bin
@$(foreach theme,$(THEMES), mkdir -p bin/$(THEME_PREFIX)-$(theme);)
@cd bitmaps
@$(foreach theme,$(THEMES), zip -r $(BIN_DIR)/$(THEME_PREFIX)-$(theme)/bitmaps.zip $(THEME_PREFIX)-$(theme);)
@zip -r $(BIN_DIR)/bitmaps.zip *
@cd ..
@cd themes
@$(foreach theme,$(THEMES), tar -czvf $(BIN_DIR)/$(THEME_PREFIX)-$(theme)/$(THEME_PREFIX)-$(theme).tar.gz $(THEME_PREFIX)-$(theme);)
@$(foreach theme,$(THEMES), zip -r $(BIN_DIR)/$(THEME_PREFIX)-$(theme)/$(THEME_PREFIX)-$(theme)-Windows.zip $(THEME_PREFIX)-$(theme)-Windows;)
@cd ..