How to run some commands globally in a Gnu Make file

五迷三道 提交于 2019-12-06 04:17:21

If once per Make invocation is sufficient, you could put it in a global assignment.

# Ignore the value, calling for side effects
IGNORE := $(shell commands with side effects)

I would recommend against this hack, but I can imagine situations where it might come in handy.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!