aio-libs / aio-libs/create-aio-app
Add params for makefile
- Lingua principale
- Python
- Stelle
- 309
- Fork
- 87
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Will be great have approach to put some arguments for make test or commands some like this.
For that we need add some like that into `Makefile`.
```
# arguments
FIRST_ARG := $(firstword $(MAKECMDGOALS))
ARGS = $(filter-out $@,$(MAKEOVERRIDES) $(MAKECMDGOALS))
MAKEFILE_PATH := $(abspath $(firstword $(MAKEFILE_LIST)))
%:
@:
```
and after that add `${ARGS}` to our commands
```
test:
docker-compose run --rm app-test ${ARGS}
```
usage
```
make test -- my_param=some_param othe_param
```
u need:
- [ ] generate ARGS variable
- [ ] add this variable to all commands which need it
- [ ] describe that into documentation
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.