aio-libs / aio-libs/create-aio-app
Add params for makefile
- Vorherrschende Sprache
- Python
- Sterne
- 309
- Forks
- 87
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.