Fixed gen-makefile

This commit is contained in:
Anthony Axenov 2022-07-04 22:22:05 +08:00
parent 317f635b91
commit 47c1e6d40b
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,8 @@
# Autogenerated at 04.07.2022 22:11 using ./gen-makefile.sh # Autogenerated at 04.07.2022 22:16 using ./gen-makefile.sh
##lamp: Apache + php + mariadb ##lamp: Apache + php + mariadb
lamp: apache php mariadb lamp: apache php mariadb
##apache: Install apache2 (latest) ##apache: Install apache2 (latest)
apache: apache:
./install/apache ./install/apache
@ -111,4 +112,4 @@ help: Makefile
##<goal>_: Same as 'cat ./install/<goal>.sh' ##<goal>_: Same as 'cat ./install/<goal>.sh'
%_: %_:
@cat ./install/$*.sh @cat ./install/$*

View File

@ -4,6 +4,7 @@ echo -e "# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}\n"
for file in ./packs/*; do for file in ./packs/*; do
cat ${file} >> Makefile cat ${file} >> Makefile
echo >> Makefile
done; done;
for file in ./install/*; do for file in ./install/*; do
@ -22,12 +23,11 @@ help: Makefile
@echo "Available goals:" @echo "Available goals:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e "s/^/\t/" @sed -n 's/^##//p' $< | column -t -s ':' | sed -e "s/^/\t/"
##<goal>_: Same as 'cat ./install/<goal>.sh' ##<goal>_: Same as 'cat ./install/<goal>'
%_: %_:
@cat ./install/\$*.sh @cat ./install/\$*
EOF EOF
echo "New ./Makefile has been generated!" echo "New ./Makefile has been generated!"
echo "Old one has been saved as ./Makefile.bak" echo "Old one has been saved as ./Makefile.bak"
echo echo