Default make
target
This commit is contained in:
parent
355953dc35
commit
aaf88521b3
3
Makefile
3
Makefile
@ -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
|
||||
|
@ -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
|
||||
...
|
||||
...
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user