📝 Edit on GitHub
Dynamic targets
- Setup a target like
PRE.%where the%can be matched dynamically. - Then call it using
PRE.VALUEe.g.echo.deps. - Use the value in the
PRE.%target as$*.
Example:
Makefilecyan = "\\033[1\;96m" off = "\\033[0m" echo.%: @echo "\n$(cyan)Building $*$(off)" deps: echo.deps pip install --upgrade pip pip install -r requirements.txt site: echo.site rm -rf site mkdir site mkdocs build