Mercurial > emacs
comparison Makefile.in @ 8770:b58e8634df8b
(removenullpaths, paths-force):
Use name paths.h.tmp$$, which depends on the pid.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 16 Sep 1994 00:03:20 +0000 |
parents | 244c6e5c5f4b |
children | 1fb0575ee03a |
comparison
equal
deleted
inserted
replaced
8769:b7eb229e956b | 8770:b58e8634df8b |
---|---|
200 # Note that sed is not in /bin on 386bsd. | 200 # Note that sed is not in /bin on 386bsd. |
201 src/paths.h: Makefile ${srcdir}/src/paths.h.in | 201 src/paths.h: Makefile ${srcdir}/src/paths.h.in |
202 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." | 202 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." |
203 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ | 203 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ |
204 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ | 204 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ |
205 sed < ${srcdir}/src/paths.h.in > paths.h.tmp \ | 205 sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \ |
206 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ | 206 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
207 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ | 207 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ |
208 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ | 208 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
209 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ | 209 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ |
210 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ | 210 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
211 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ | 211 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ |
212 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') | 212 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \ |
213 @${srcdir}/move-if-change paths.h.tmp src/paths.h | 213 ${srcdir}/move-if-change paths.h.tmp$$$$ src/paths.h |
214 | 214 |
215 # For `make all', | 215 # For `make all', |
216 # we force the rebuilding of src/paths.h because the user might give | 216 # we force the rebuilding of src/paths.h because the user might give |
217 # make different values for the various directories. Since we use | 217 # make different values for the various directories. Since we use |
218 # move-if-change, src/paths.h only actually changes if the user did | 218 # move-if-change, src/paths.h only actually changes if the user did |
219 # something notable, so the only unnecessary work we do is in building | 219 # something notable, so the only unnecessary work we do is in building |
220 # paths.h.tmp, which isn't much. | 220 # paths.h.tmp$$$$, which isn't much. |
221 # Note that sed is not in /bin on 386bsd. | 221 # Note that sed is not in /bin on 386bsd. |
222 paths-force: FRC.src.paths.h | 222 paths-force: FRC.src.paths.h |
223 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." | 223 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." |
224 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ | 224 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ |
225 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ | 225 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ |
226 sed < ${srcdir}/src/paths.h.in > paths.h.tmp \ | 226 sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \ |
227 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ | 227 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
228 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ | 228 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ |
229 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ | 229 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
230 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ | 230 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ |
231 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ | 231 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
232 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ | 232 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ |
233 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') | 233 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \ |
234 @${srcdir}/move-if-change paths.h.tmp src/paths.h | 234 ${srcdir}/move-if-change paths.h.tmp$$$$ src/paths.h |
235 | 235 |
236 src: lib-src FRC.src src/paths.h | 236 src: lib-src FRC.src src/paths.h |
237 | 237 |
238 # This ought to depend on src/paths.h, so that in parallel make | 238 # This ought to depend on src/paths.h, so that in parallel make |
239 # src/paths.h will be available for the compilations in lib-src. | 239 # src/paths.h will be available for the compilations in lib-src. |