Force Makefile to execute script before building targets -


I am using makefiles.

However, there is a command (zsh script) to execute any goal. How do i do this

Thank you!

There are several techniques in which code is executed before the goal, which one should you choose, in fact What do you want to do, and why you want to do it. (What does the Zsh script do? Why do you have to execute it?)

You can either @ John suggest; By placing a zsh script as the first dependency, you should mark the zsh target as . PHONY Unless it actually generates a file named zsh .

Another solution is to open $ (shell ...) function as part of a variable assignment: at least

  ZSH_RESULT: $ $ (shell zsh Myscript.zsh)  

As soon as the makefile is parsed, and before executing the any target The script will be implemented. This script will also execute if you invite makefiles recursively.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -