0
0
Fork 0
zblog/content/post/87.md

13 lines
476 B
Markdown
Raw Normal View History

+++
title = "extend PATH in Makefile"
date = "2012-06-02T20:48:18+00:00"
author = "Gibheer"
draft = false
+++
2022-03-25 14:41:22 +01:00
Whenever you have the need to "patch" the path in a Makefile, you can do that with the following line.
PATH := $(PATH):/optional/path
Use $(PATH) to get the PATH variable from the environment. `:=` is used to avoid circular dependencies in the form, that PATH gets reassigned over and over again. If you leave the colon, then make will inform you about this.