Small generator improvements, 'make test' as an alias for ./gen-makefile
This commit is contained in:
parent
c48971a858
commit
7185a3cf7f
29
Makefile
29
Makefile
@ -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
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./packs
|
||||||
|
#===============================================
|
||||||
|
|
||||||
##composer: [PACK] php + composer
|
##composer: [PACK] php + composer
|
||||||
composer: php composer-clean
|
composer: php composer-clean
|
||||||
|
|
||||||
@ -15,6 +19,10 @@ omz: zsh omz-clean omz-fancy
|
|||||||
chsh -s /usr/bin/zsh
|
chsh -s /usr/bin/zsh
|
||||||
@exec zsh
|
@exec zsh
|
||||||
|
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./install
|
||||||
|
#===============================================
|
||||||
|
|
||||||
##apache: Install apache2 (latest)
|
##apache: Install apache2 (latest)
|
||||||
apache:
|
apache:
|
||||||
@./install/apache
|
@./install/apache
|
||||||
@ -151,14 +159,21 @@ zint:
|
|||||||
zsh:
|
zsh:
|
||||||
@./install/zsh
|
@./install/zsh
|
||||||
|
|
||||||
##help: Show this help message
|
|
||||||
|
self:
|
||||||
|
@./gen-makefile
|
||||||
help: Makefile
|
help: Makefile
|
||||||
|
@echo "Ubuntu software installator"
|
||||||
|
@echo
|
||||||
@echo "Usage:"
|
@echo "Usage:"
|
||||||
@echo "\tmake <goal>\t - Install software"
|
@echo "\tmake help\t - Show this help"
|
||||||
@echo "\tmake +<goal>\t - Install software"
|
@echo "\tmake GOAL\t - Install software"
|
||||||
@echo "\tmake ^<goal>\t - Upgrade software"
|
@echo "\tmake ^GOAL\t - Upgrade software"
|
||||||
@echo "\tmake @<goal>\t - Uninstall software"
|
@echo "\tmake @GOAL\t - Uninstall software"
|
||||||
@echo "Available goals:"
|
@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/"
|
@sed -n 's/^##//p' $< | column -ts ':' | sed -e "s/^/\t/"
|
||||||
+%:
|
+%:
|
||||||
@$(MAKE) $*
|
@$(MAKE) $*
|
||||||
|
32
gen-makefile
32
gen-makefile
@ -5,13 +5,24 @@ cat << EOF >> Makefile
|
|||||||
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
|
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./packs
|
||||||
|
#===============================================
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for file in ./packs/*; do
|
for file in ./packs/*; do
|
||||||
cat ${file} >> Makefile
|
cat "$file" >> Makefile
|
||||||
echo >> Makefile
|
echo >> Makefile
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
cat << EOF >> Makefile
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./install
|
||||||
|
#===============================================
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
for file in ./install/*; do
|
for file in ./install/*; do
|
||||||
name=${file##*/}
|
name=${file##*/}
|
||||||
name=${name%.sh}
|
name=${name%.sh}
|
||||||
@ -21,14 +32,21 @@ for file in ./install/*; do
|
|||||||
done;
|
done;
|
||||||
|
|
||||||
cat << "EOF" >> Makefile
|
cat << "EOF" >> Makefile
|
||||||
##help: Show this help message
|
|
||||||
|
self:
|
||||||
|
@./gen-makefile
|
||||||
help: Makefile
|
help: Makefile
|
||||||
|
@echo "Ubuntu software installator"
|
||||||
|
@echo
|
||||||
@echo "Usage:"
|
@echo "Usage:"
|
||||||
@echo "\tmake <goal>\t - Install software"
|
@echo "\tmake help\t - Show this help"
|
||||||
@echo "\tmake +<goal>\t - Install software"
|
@echo "\tmake GOAL\t - Install software"
|
||||||
@echo "\tmake ^<goal>\t - Upgrade software"
|
@echo "\tmake ^GOAL\t - Upgrade software"
|
||||||
@echo "\tmake @<goal>\t - Uninstall software"
|
@echo "\tmake @GOAL\t - Uninstall software"
|
||||||
@echo "Available goals:"
|
@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/"
|
@sed -n 's/^##//p' $< | column -ts ':' | sed -e "s/^/\t/"
|
||||||
+%:
|
+%:
|
||||||
@$(MAKE) $*
|
@$(MAKE) $*
|
||||||
|
Loading…
Reference in New Issue
Block a user