$(call if_changed_dep,cpp_lds_S) is cpp_lds_S the argument fot if_changed_deo?
时间: 2023-08-03 07:09:36 浏览: 167
CPP.rar_单片机 dep文件
Yes, in the expression `$(call if_changed_dep,cpp_lds_S)`, `cpp_lds_S` is the argument for the `if_changed_dep` function.
The `if_changed_dep` function is a built-in function in Makefile that is used to run a command only if its dependencies have changed. The syntax for using `if_changed_dep` is:
```
$(if_changed_dep,command)
```
Here, `command` is the shell command that you want to run if its dependencies have changed.
In your example, `cpp_lds_S` is being passed as an argument to `if_changed_dep`. This means that `cpp_lds_S` is the command that will be executed by `if_changed_dep` if its dependencies have changed.
So, the `if_changed_dep` function will check if the dependencies of the target that is being built have changed since the last build, and if they have, it will execute the `cpp_lds_S` command. If the dependencies have not changed, `cpp_lds_S` will not be executed.
阅读全文