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 bitmaps
themes themes
builder/files.txt bin
########## Python
# Python
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
@@ -136,7 +135,7 @@ dmypy.json
.pyre/ .pyre/
######### Node # --------------------------------------------- Nodejs
# Logs # Logs
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 - `Makefile` command with `THEME_PREFIX` variable
- distributed pling products docs inside `pling` directory - distributed pling products docs inside `pling` directory
- `prepare` command added inside `Makefile`
### Changed ### Changed
+15
View File
@@ -51,3 +51,18 @@ uninstall:
@fi @fi
reinstall: uninstall install 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 ..