在GNUMakefile路径中使用$ literal

Bat*_*eba 4 makefile gnu-make

我有 //here/is$/my/file(注意$)作为文件位置,并在GNUmakefile中指定

OutputFile = //here/is$/my/file
Run Code Online (Sandbox Code Playgroud)

问题是我需要以某种方式逃避$.我试过了\ $没有成功.

有谁知道如何做到这一点?

Bat*_*eba 7

使用$$:

OutputFile = //here/is$$/my/file
Run Code Online (Sandbox Code Playgroud)