Collection of useful makefiles and commands, with Docker, Symfony, PHP, Composer, Angular, Node, ...
- Clone the project:
git clone git@github.com:jprivet-dev/makefiles.git
cd makefiles
- And choose one of the use cases. For example:
cd php-local-compose-v1-v2
make # print help
# Comments are preceded by the hash symbol
.PHONY: target
target: dependencies
command_1
command_2
...
command_n
I prefer to use the snack_case format for Makefile commands, as it's easier to select an entire command with a double-click (IDE, text editor, terminal, ...), unlike the kebab-case format.
.PHONY: my_target_a
my_target_a: dependencies
.PHONY: my-target-a
my-target-a: dependencies
- https://github.com/dunglas/symfony-docker/blob/main/docs/makefile.md
- https://www.hpc2n.umu.se/documentation/compilers/makefiles
- https://stackoverflow.com/questions/2145590/what-is-the-purpose-of-phony-in-a-makefile
- https://devhints.io/makefile
- https://emojipedia.org/
Feel free to make comments/suggestions to me in the Git issues section.
This project is released under the MIT License.