Default make target

This commit is contained in:
Anthony Axenov 2022-08-19 21:26:09 +08:00
parent 355953dc35
commit aaf88521b3
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
3 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,5 @@
# Autogenerated at 19.08.2022 21:20 using ./gen-makefile
# Autogenerated at 19.08.2022 21:25 using ./gen-makefile
.DEFAULT_GOAL := help
##composer: [PACK] php + composer
composer: php composer-clean

View File

@ -30,13 +30,9 @@ cd my-env
./gen-makefile
# get full list of `make` goals
make help
make
```
> I do not recommend to run `make` without arguments since then ALL goals will be started in their order.
>
> Use `make help` to look around.
### Selective straightforward installation
```shell
@ -70,7 +66,7 @@ mypack1: goal1 goal2 goalX ...
...
##mypackX: Pack description
mypackY: goalA goalB
mypackX: goalA goalB
@cp file1 file2
...
...

View File

@ -1,6 +1,11 @@
#!/bin/bash
mv Makefile Makefile.bak
echo -e "# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}\n" > Makefile
cat << EOF >> Makefile
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
.DEFAULT_GOAL := help
EOF
for file in ./packs/*; do
cat ${file} >> Makefile