Mercurial > emacs
comparison lib-src/Makefile.in @ 47957:bd6f8b5a580a
(${archlibdir}): Always create $(gamedir).
(update-game-score): Pass $(gamedir) as HAVE_SHARED_GAME_DIR.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sat, 19 Oct 2002 13:55:15 +0000 |
parents | d7435ace194f |
children | fb6393f7b62a |
comparison
equal
deleted
inserted
replaced
47956:85fe079f02d2 | 47957:bd6f8b5a580a |
---|---|
148 don't let the file name alloca.c get messed up. */ | 148 don't let the file name alloca.c get messed up. */ |
149 #ifdef alloca | 149 #ifdef alloca |
150 #undef alloca | 150 #undef alloca |
151 #endif | 151 #endif |
152 | 152 |
153 /* Some machines don't find the standard C libraries in the usual place. */ | 153 /* Some machines don\'t find the standard C libraries in the usual place. */ |
154 #ifndef ORDINARY_LINK | 154 #ifndef ORDINARY_LINK |
155 #ifndef LIB_STANDARD_LIBSRC | 155 #ifndef LIB_STANDARD_LIBSRC |
156 #define LIB_STANDARD_LIBSRC -lc | 156 #define LIB_STANDARD_LIBSRC -lc |
157 #endif | 157 #endif |
158 #else | 158 #else |
249 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | 249 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} |
250 CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 250 CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
251 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | 251 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
252 /* This was all of CPP_CFLAGS except -Demacs. | 252 /* This was all of CPP_CFLAGS except -Demacs. |
253 Now that -Demacs has been deleted from CPP_CFLAGS, | 253 Now that -Demacs has been deleted from CPP_CFLAGS, |
254 this is actually the same as CPP_CFLAGS, but let's not delete it yet. */ | 254 this is actually the same as CPP_CFLAGS, but let\'s not delete it yet. */ |
255 BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 255 BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ |
256 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | 256 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
257 | 257 |
258 /* This is the default compilation command. | 258 /* This is the default compilation command. |
259 But we should never rely on it, because some make version | 259 But we should never rely on it, because some make version |
270 chmod +x blessmail | 270 chmod +x blessmail |
271 #endif | 271 #endif |
272 | 272 |
273 maybe-blessmail: BLESSMAIL | 273 maybe-blessmail: BLESSMAIL |
274 #ifdef MOVEMAIL_NEEDS_BLESSING | 274 #ifdef MOVEMAIL_NEEDS_BLESSING |
275 /* Don't charge ahead and do it! Let the installer decide. | 275 /* Don\'t charge ahead and do it! Let the installer decide. |
276 ./blessmail ${archlibdir}/movemail */ | 276 ./blessmail ${archlibdir}/movemail */ |
277 @if [ `wc -l <blessmail` != 2 ] ; then \ | 277 @if [ `wc -l <blessmail` != 2 ] ; then \ |
278 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | 278 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ |
279 echo Assuming $$dir is really the mail spool directory, you should; \ | 279 echo Assuming $$dir is really the mail spool directory, you should; \ |
280 echo run lib-src/blessmail ${archlibdir}/movemail; \ | 280 echo run lib-src/blessmail ${archlibdir}/movemail; \ |
292 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ | 292 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ |
293 for file in ${UTILITIES}; do \ | 293 for file in ${UTILITIES}; do \ |
294 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ | 294 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ |
295 done ; \ | 295 done ; \ |
296 fi | 296 fi |
297 $(top_srcdir)/mkinstalldirs ${gamedir} | |
298 touch ${gamedir}/snake-scores | |
299 touch ${gamedir}/tetris-scores | |
297 /* If the following commands fail, that is not a big deal. | 300 /* If the following commands fail, that is not a big deal. |
298 update-game-score will detect at runtime that it is not setuid, | 301 update-game-score will detect at runtime that it is not setuid, |
299 and handle things accordingly. */ | 302 and handle things accordingly. */ |
300 if test ${gamedir} != no && chown ${gameuser} ${archlibdir}/update-game-score && chmod u+s ${archlibdir}/update-game-score; then \ | 303 if chown ${gameuser} ${archlibdir}/update-game-score && chmod u+s ${archlibdir}/update-game-score; then \ |
301 $(top_srcdir)/mkinstalldirs ${gamedir}; \ | |
302 chown ${gameuser} ${gamedir}; \ | 304 chown ${gameuser} ${gamedir}; \ |
303 chmod u=rwx,g=rwx,o=rx ${gamedir}; \ | 305 chmod u=rwx,g=rwx,o=rx ${gamedir}; \ |
304 touch ${gamedir}/snake-scores; \ | |
305 touch ${gamedir}/tetris-scores; \ | |
306 fi | 306 fi |
307 if [ `(cd ${archlibdir} && /bin/pwd)` \ | 307 if [ `(cd ${archlibdir} && /bin/pwd)` \ |
308 != `(cd ${srcdir} && /bin/pwd)` ]; then \ | 308 != `(cd ${srcdir} && /bin/pwd)` ]; then \ |
309 for file in ${SCRIPTS}; do \ | 309 for file in ${SCRIPTS}; do \ |
310 $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \ | 310 $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \ |
360 | 360 |
361 tags: TAGS | 361 tags: TAGS |
362 TAGS: etags | 362 TAGS: etags |
363 etags *.[ch] | 363 etags *.[ch] |
364 | 364 |
365 /* This verifies that the non-ASCII characters in the file `testfile' | 365 /* This verifies that the non-ASCII characters in the file \`testfile\' |
366 have not been clobbered by whatever means were used to copy and | 366 have not been clobbered by whatever means were used to copy and |
367 distribute Emacs. If they were clobbered, all the .elc files were | 367 distribute Emacs. If they were clobbered, all the .elc files were |
368 clobbered too. */ | 368 clobbered too. */ |
369 test-distrib: ${srcdir}/test-distrib.c | 369 test-distrib: ${srcdir}/test-distrib.c |
370 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c | 370 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
394 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags | 394 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags |
395 | 395 |
396 ebrowse: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | 396 ebrowse: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
397 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | 397 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse |
398 | 398 |
399 /* We depend on etags to assure that parallel makes don't write two | 399 /* We depend on etags to assure that parallel makes don\'t write two |
400 etags.o files on top of each other. */ | 400 etags.o files on top of each other. */ |
401 ctags: etags | 401 ctags: etags |
402 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags | 402 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
403 | 403 |
404 profile: ${srcdir}/profile.c ../src/config.h | 404 profile: ${srcdir}/profile.c ../src/config.h |
442 | 442 |
443 hexl: ${srcdir}/hexl.c ../src/config.h | 443 hexl: ${srcdir}/hexl.c ../src/config.h |
444 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 444 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
445 | 445 |
446 update-game-score: ${srcdir}/update-game-score.c ../src/config.h | 446 update-game-score: ${srcdir}/update-game-score.c ../src/config.h |
447 $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score | 447 $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \ |
448 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ | |
449 $(LOADLIBES) -o update-game-score | |
448 | 450 |
449 /* These are NOT included in INSTALLABLES or UTILITIES. | 451 /* These are NOT included in INSTALLABLES or UTILITIES. |
450 See ../src/Makefile.in. */ | 452 See ../src/Makefile.in. */ |
451 emacstool: ${srcdir}/emacstool.c | 453 emacstool: ${srcdir}/emacstool.c |
452 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ | 454 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ |