Making MKDIR_P Directory Rule like Emacs using ${trgdir}
Heime <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <YS2_nAbJWkEiD0Ysrhk4v1Ic0YWXl58KD3EBMqhuenvUEOEZJdG3SpWbBa5VqT1nlDzne8BVUxFjQ8cTuMt3Rsk4Xwl-_Hh_38X7F7nEWW0=@protonmail.com> |
In the Emacs documentation makefile, this makes the directory
where the resulting emacs.info file is placed
MKDIR_P = @MKDIR_P@
${buildinfodir}:
${MKDIR_P} $@
In my case, I want the info file to exist in the build directory
target stored in trgdir. What recipe shall I use to make
trgdir if it does not exist?
${trgdir}:
${MKDIR_P} $@