Hacker News new | past | comments | ask | show | jobs | submit login

Makefile quickly gets complicated when you have to pass in flags (--an-example-flag).

e.g.

dev: ./scripts/run-dev.sh $(if $(filter build,$(MAKECMDGOALS)),--build,) $(if $(filter restart,$(MAKECMDGOALS)),--restart,) ...etc

Since the project is in python it would be better to write a python script and start the tasks as subprocesses. This means you can use the python argparser you're already familiar with.

https://docs.python.org/3/library/subprocess.html




Or in short: using 3 languages (Make, shell interspersed between the Make, Python) is more complicated than using one language.


The `.sh` was not implied by the article. That was my addition but, yes, the less languages the better!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: