Small generator improvements, 'make test' as an alias for ./gen-makefile

This commit is contained in:
2022-08-25 12:40:36 +08:00
parent c48971a858
commit 7185a3cf7f
2 changed files with 47 additions and 14 deletions

View File

@@ -1,6 +1,10 @@
# Autogenerated at 19.08.2022 21:25 using ./gen-makefile
# Autogenerated at 22.08.2022 19:06 using ./gen-makefile
.DEFAULT_GOAL := help
#===============================================
# Scripts listed in ./packs
#===============================================
##composer: [PACK] php + composer
composer: php composer-clean
@@ -15,6 +19,10 @@ omz: zsh omz-clean omz-fancy
chsh -s /usr/bin/zsh
@exec zsh
#===============================================
# Scripts listed in ./install
#===============================================
##apache: Install apache2 (latest)
apache:
@./install/apache
@@ -151,14 +159,21 @@ zint:
zsh:
@./install/zsh
##help: Show this help message
self:
@./gen-makefile
help: Makefile
@echo "Ubuntu software installator"
@echo
@echo "Usage:"
@echo "\tmake <goal>\t - Install software"
@echo "\tmake +<goal>\t - Install software"
@echo "\tmake ^<goal>\t - Upgrade software"
@echo "\tmake @<goal>\t - Uninstall software"
@echo "Available goals:"
@echo "\tmake help\t - Show this help"
@echo "\tmake GOAL\t - Install software"
@echo "\tmake ^GOAL\t - Upgrade software"
@echo "\tmake @GOAL\t - Uninstall software"
@echo
@echo "You can combine GOALs, e.g. 'make @docker docker' will reinstall docker."
@echo
@echo "Available GOALs:"
@sed -n 's/^##//p' $< | column -ts ':' | sed -e "s/^/\t/"
+%:
@$(MAKE) $*