comparison Makefile.in @ 4705:bbeec82f0416

(lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed. Replace sed comand for VPATH with @vpath_sed@.
author Roland McGrath <roland@gnu.org>
date Sun, 12 Sep 1993 10:49:30 +0000
parents 2d15be4c46b5
children 0019d042d4a6
comparison
equal deleted inserted replaced
4704:b5d192c0f910 4705:bbeec82f0416
238 238
239 ## We build the makefiles for the subdirectories here so that we can 239 ## We build the makefiles for the subdirectories here so that we can
240 ## edit the values for the path variables into them. This means that 240 ## edit the values for the path variables into them. This means that
241 ## when the user has built them from this makefile once, they will use 241 ## when the user has built them from this makefile once, they will use
242 ## the right default values for the path variables. 242 ## the right default values for the path variables.
243 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile 243 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile vpath.sed
244 rm -f lib-src/Makefile.tmp 244 rm -f lib-src/Makefile.tmp
245 @echo "Producing \`lib-src/Makefile' from \`${srcdir}/lib-src/Makefile.in'." 245 @echo "Producing \`lib-src/Makefile' from \`${srcdir}/lib-src/Makefile.in'."
246 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \ 246 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \
247 echo "# If you are thinking about editing it, you should seriously consider" ; \ 247 echo "# If you are thinking about editing it, you should seriously consider" ; \
248 echo "# running \`make lib-src/Makefile' at the top of the" ; \ 248 echo "# running \`make lib-src/Makefile' at the top of the" ; \
249 echo "# Emacs build tree instead, or editing" ; \ 249 echo "# Emacs build tree instead, or editing" ; \
250 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ 250 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \
251 subdir=lib-src; \
251 sed < ${srcdir}/lib-src/Makefile.in \ 252 sed < ${srcdir}/lib-src/Makefile.in \
252 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ 253 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \
253 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ 254 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \
254 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ 255 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \
255 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ 256 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \
256 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ 257 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \
257 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \ 258 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \
258 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/lib-src|' \ 259 @vpath_sed@ \
259 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ 260 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
260 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ 261 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \
261 -e 's|^\(YACC *=\).*$$|\1'"${YACC}"'|' \ 262 -e 's|^\(YACC *=\).*$$|\1'"${YACC}"'|' \
262 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 263 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
263 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ 264 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
265 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ 266 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \
266 -e '/^# DIST: /d') > lib-src/Makefile.tmp 267 -e '/^# DIST: /d') > lib-src/Makefile.tmp
267 @${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile 268 @${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile
268 chmod -w lib-src/Makefile 269 chmod -w lib-src/Makefile
269 270
270 src/Makefile: ${srcdir}/src/Makefile.in Makefile 271 src/Makefile: ${srcdir}/src/Makefile.in Makefile vpath.sed
271 rm -f src/Makefile.tmp 272 rm -f src/Makefile.tmp
272 @echo "Producing \`src/Makefile' from \`${srcdir}/src/Makefile.in'." 273 @echo "Producing \`src/Makefile' from \`${srcdir}/src/Makefile.in'."
273 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \ 274 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \
274 echo "# If you are thinking about editing it, you should seriously consider" ; \ 275 echo "# If you are thinking about editing it, you should seriously consider" ; \
275 echo "# running \`make src/Makefile' at the top of the" ; \ 276 echo "# running \`make src/Makefile' at the top of the" ; \
276 echo "# Emacs build tree instead, or editing" ; \ 277 echo "# Emacs build tree instead, or editing" ; \
277 echo "# \`${srcdir}/src/Makefile.in' itself." ; \ 278 echo "# \`${srcdir}/src/Makefile.in' itself." ; \
279 subdir=src; \
278 sed < ${srcdir}/src/Makefile.in \ 280 sed < ${srcdir}/src/Makefile.in \
279 -e 's|^\(srcdir *=\).*$$|\1${srcdir}/src|' \ 281 -e 's|^\(srcdir *=\).*$$|\1${srcdir}/src|' \
280 -e 's|^\(VPATH *=\).*$$|\1${srcdir}/src|' \ 282 @vpath_sed@ \
281 -e 's|^CC *=.*$$|CC=${CC}|' \ 283 -e 's|^CC *=.*$$|CC=${CC}|' \
282 -e 's|^CPP *=.*$$|CPP=${CPP}|' \ 284 -e 's|^CPP *=.*$$|CPP=${CPP}|' \
283 -e 's|^LN_S *=.*$$|LN_S=${LN_S}|' \ 285 -e 's|^LN_S *=.*$$|LN_S=${LN_S}|' \
284 -e 's|^CFLAGS *=.*$$|CFLAGS=${CFLAGS}|' \ 286 -e 's|^CFLAGS *=.*$$|CFLAGS=${CFLAGS}|' \
285 -e 's|^\(C_SWITCH_SYSTEM *=\).*$$|\1'"${C_SWITCH_SYSTEM}"'|' \ 287 -e 's|^\(C_SWITCH_SYSTEM *=\).*$$|\1'"${C_SWITCH_SYSTEM}"'|' \
286 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1${LD_SWITCH_X_SITE}|' \ 288 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1${LD_SWITCH_X_SITE}|' \
287 -e '/^# DIST: /d') > src/Makefile.tmp 289 -e '/^# DIST: /d') > src/Makefile.tmp
288 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile 290 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
289 chmod -w src/Makefile 291 chmod -w src/Makefile
290 292
291 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile.in Makefile 293 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile.in Makefile vpath.sed
292 rm -f oldXMenu/Makefile.tmp 294 rm -f oldXMenu/Makefile.tmp
293 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'." 295 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'."
294 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile.in'." ; \ 296 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile.in'." ; \
295 echo "# If you are thinking about editing it, you should seriously consider" ; \ 297 echo "# If you are thinking about editing it, you should seriously consider" ; \
296 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \ 298 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \
297 echo "# Emacs build tree instead, or editing" ; \ 299 echo "# Emacs build tree instead, or editing" ; \
298 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \ 300 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \
301 subdir=oldXMenu; \
299 sed < ${srcdir}/oldXMenu/Makefile.in \ 302 sed < ${srcdir}/oldXMenu/Makefile.in \
300 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ 303 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
301 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ 304 @vpath_sed@ \
302 -e 's|^\(C_SWITCH_X_SITE *=\).*$$|\1'"${C_SWITCH_X_SITE}"'|' \ 305 -e 's|^\(C_SWITCH_X_SITE *=\).*$$|\1'"${C_SWITCH_X_SITE}"'|' \
303 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 306 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
304 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ 307 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
305 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp 308 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp
306 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile 309 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile