Commit 1ba1fb11 authored by Colin Walters's avatar Colin Walters
Browse files

(gamedir, gameuser): New variables.

(toplevel, UTILITIES): Add update-game-score.
(${archlibdir}): Handle HAVE_SHARED_GAME_DIR.
parent 93c05c18
...@@ -82,6 +82,9 @@ top_srcdir=@top_srcdir@ ...@@ -82,6 +82,9 @@ top_srcdir=@top_srcdir@
# to `../configure'. # to `../configure'.
archlibdir=@archlibdir@ archlibdir=@archlibdir@
gamedir=@gamedir@
gameuser=@gameuser@
# ==================== Utility Programs for the Build ================= # ==================== Utility Programs for the Build =================
# ../configure figures out the correct values for these. # ../configure figures out the correct values for these.
...@@ -100,8 +103,8 @@ INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog ...@@ -100,8 +103,8 @@ INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
# Things that Emacs runs internally, or during the build process, # Things that Emacs runs internally, or during the build process,
# which should not be installed in bindir. # which should not be installed in bindir.
UTILITIES= profile digest-doc \ UTILITIES= profile digest-doc sorted-doc movemail cvtmail fakemail \
sorted-doc movemail cvtmail fakemail yow emacsserver hexl yow emacsserver hexl update-game-score
DONT_INSTALL= test-distrib make-docfile DONT_INSTALL= test-distrib make-docfile
...@@ -288,6 +291,17 @@ ${archlibdir}: all ...@@ -288,6 +291,17 @@ ${archlibdir}: all
$(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \
done ; \ done ; \
fi fi
#ifdef HAVE_SHARED_GAME_DIR
chown ${gameuser} ${archlibdir}/update-game-score
chmod u+s ${archlibdir}/update-game-score
$(top_srcdir)/mkinstalldirs ${gamedir}
chown ${gameuser} ${gamedir}
chmod u=rwx,g=rwx,o=rx ${gamedir}
/* If you change these, be sure to change the variables in
lisp/play/{tetris,snake}.el. */
touch ${gamedir}/snake-scores
touch ${gamedir}/tetris-scores
#endif
if [ `(cd ${archlibdir} && /bin/pwd)` \ if [ `(cd ${archlibdir} && /bin/pwd)` \
!= `(cd ${srcdir} && /bin/pwd)` ]; then \ != `(cd ${srcdir} && /bin/pwd)` ]; then \
for file in ${SCRIPTS}; do \ for file in ${SCRIPTS}; do \
...@@ -430,6 +444,9 @@ emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) ...@@ -430,6 +444,9 @@ emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
hexl: ${srcdir}/hexl.c ../src/config.h hexl: ${srcdir}/hexl.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
update-game-score: ${srcdir}/update-game-score.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c $(LOADLIBES) -o update-game-score
/* These are NOT included in INSTALLABLES or UTILITIES. /* These are NOT included in INSTALLABLES or UTILITIES.
See ../src/Makefile.in. */ See ../src/Makefile.in. */
emacstool: ${srcdir}/emacstool.c emacstool: ${srcdir}/emacstool.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment