From aaf88521b32701abac33427230a447af04efff81 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Fri, 19 Aug 2022 21:26:09 +0800 Subject: [PATCH] Default `make` target --- Makefile | 3 ++- README.md | 8 ++------ gen-makefile | 7 ++++++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4ab402d..164883a 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index 4ac0a55..d5f6166 100644 --- a/README.md +++ b/README.md @@ -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 ... ... diff --git a/gen-makefile b/gen-makefile index 7c2bca8..edab161 100755 --- a/gen-makefile +++ b/gen-makefile @@ -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