comparison Makefile.in @ 8754:244c6e5c5f4b

(removenullpaths, paths-force): Put paths.h.tmp in top-level dir, not in src.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Sep 1994 03:47:07 +0000
parents 462c6cf489fb
children b58e8634df8b
comparison
equal deleted inserted replaced
8753:6093207b85e8 8754:244c6e5c5f4b
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 > src/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 src/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 # src/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 > src/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 src/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.