diff options
| author | Glenn Morris | 2010-05-10 20:00:32 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-10 20:00:32 -0700 |
| commit | d3b23034e8730133e23d6b51905b181f12bfb253 (patch) | |
| tree | 2925f56cccf07cf4bcd69cb0f8c34a73ad7db58a /lib-src | |
| parent | acddf8aec716be7810edc29e1a7eeb396fc755c3 (diff) | |
| download | emacs-d3b23034e8730133e23d6b51905b181f12bfb253.tar.gz emacs-d3b23034e8730133e23d6b51905b181f12bfb253.zip | |
Do not preprocess lib-src/Makefile.in
* configure.in: Generate lib-src/Makefile directly, do not run cpp.
* config.bat: Do not run cpp on lib-src/Makefile.in.
* lib-src/Makefile.in: Convert comments to makefile format.
* admin/notes/cpp: lib-src/Makefile not preprocessed.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 2 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 68 |
2 files changed, 35 insertions, 35 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 6f3879fb266..c9a054b9e23 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-11 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-11 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in: Convert comments to makefile format. | ||
| 4 | |||
| 3 | * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset. | 5 | * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset. |
| 4 | (config.h) [MSDOS]: Do not include. | 6 | (config.h) [MSDOS]: Do not include. |
| 5 | 7 | ||
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 683a97393db..a2773aa916d 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -31,6 +31,7 @@ EMACSOPT = -batch --no-site-file --multibyte | |||
| 31 | CC=@CC@ | 31 | CC=@CC@ |
| 32 | CFLAGS=@CFLAGS@ | 32 | CFLAGS=@CFLAGS@ |
| 33 | version=@version@ | 33 | version=@version@ |
| 34 | ## Used in $archlibdir. | ||
| 34 | configuration=@configuration@ | 35 | configuration=@configuration@ |
| 35 | EXEEXT=@EXEEXT@ | 36 | EXEEXT=@EXEEXT@ |
| 36 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ | 37 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
| @@ -127,8 +128,8 @@ EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | |||
| 127 | # Specify additional -D flags for movemail. Options: | 128 | # Specify additional -D flags for movemail. Options: |
| 128 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). | 129 | # -DMAIL_USE_FLOCK or -DMAIL_USE_LOCKF (use flock or lockf for file locking). |
| 129 | # See the comments about locking in movemail.c. Normally the values | 130 | # See the comments about locking in movemail.c. Normally the values |
| 130 | # in ../src/[ms]/*.h should be correct and you should not need to do anything. | 131 | # set by configure should be correct and you should not need to do anything. |
| 131 | # If neither flag is set, blessmail is used. | 132 | # If neither flag is set, you need to use blessmail. |
| 132 | MOVE_FLAGS= | 133 | MOVE_FLAGS= |
| 133 | 134 | ||
| 134 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. | 135 | ## Empty if either MAIL_USE_FLOCK or MAIL_USE_LOCKF, else need-blessmail. |
| @@ -164,18 +165,15 @@ ALL_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src | |||
| 164 | LINK_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | 165 | LINK_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} |
| 165 | CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | 166 | CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
| 166 | 167 | ||
| 167 | # ========================== start of cpp stuff ======================= | ||
| 168 | /* From here on, comments must be done in C syntax. */ | ||
| 169 | |||
| 170 | LOADLIBES=$(LIBS_SYSTEM) | 168 | LOADLIBES=$(LIBS_SYSTEM) |
| 171 | 169 | ||
| 172 | 170 | ||
| 173 | .SUFFIXES: .m | 171 | .SUFFIXES: .m |
| 174 | 172 | ||
| 175 | /* This is the default compilation command. | 173 | ## This is the default compilation command. |
| 176 | But we should never rely on it, because some make version | 174 | ## But we should never rely on it, because some make version failed to |
| 177 | failed to find it for getopt.o. | 175 | ## find it for getopt.o. |
| 178 | Using an explicit command made it work. */ | 176 | ## Using an explicit command made it work. |
| 179 | .c.o: | 177 | .c.o: |
| 180 | ${CC} -c ${CPP_CFLAGS} $< | 178 | ${CC} -c ${CPP_CFLAGS} $< |
| 181 | 179 | ||
| @@ -184,11 +182,10 @@ LOADLIBES=$(LIBS_SYSTEM) | |||
| 184 | 182 | ||
| 185 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 183 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
| 186 | 184 | ||
| 187 | /* These targets copy the scripts into the build directory | 185 | ## These targets copy the scripts into the build directory so that |
| 188 | so that they can be run from there in an uninstalled Emacs. | 186 | ## they can be run from there in an uninstalled Emacs. |
| 189 | The "-" is prepended because some versions of cp barf when | 187 | ## The "-" is prepended because some versions of cp barf when srcdir |
| 190 | srcdir is the current directory, and thus the file will be | 188 | ## is the current directory, and thus the file will be copied into itself. |
| 191 | copied into itself. */ | ||
| 192 | rcs2log: $(srcdir)/rcs2log | 189 | rcs2log: $(srcdir)/rcs2log |
| 193 | -cp -p $(srcdir)/rcs2log rcs2log | 190 | -cp -p $(srcdir)/rcs2log rcs2log |
| 194 | 191 | ||
| @@ -201,16 +198,15 @@ grep-changelog: $(srcdir)/grep-changelog | |||
| 201 | vcdiff: $(srcdir)/vcdiff | 198 | vcdiff: $(srcdir)/vcdiff |
| 202 | -cp -p $(srcdir)/vcdiff vcdiff | 199 | -cp -p $(srcdir)/vcdiff vcdiff |
| 203 | 200 | ||
| 204 | /* Only used if we need blessmail, but no harm in always defining. | 201 | ## Only used if we need blessmail, but no harm in always defining. |
| 205 | This makes the actual blessmail executable. */ | 202 | ## This makes the actual blessmail executable. |
| 206 | blessmail: | 203 | blessmail: |
| 207 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el | 204 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el |
| 208 | chmod +x blessmail | 205 | chmod +x blessmail |
| 209 | 206 | ||
| 210 | /* This checks if we need to run blessmail. */ | 207 | ## This checks if we need to run blessmail. |
| 208 | ## Do not charge ahead and do it! Let the installer decide. | ||
| 211 | need-blessmail: blessmail | 209 | need-blessmail: blessmail |
| 212 | /* Don\'t charge ahead and do it! Let the installer decide. | ||
| 213 | ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */ | ||
| 214 | @if [ `wc -l <blessmail` != 2 ] ; then \ | 210 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
| 215 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | 211 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ |
| 216 | echo Assuming $$dir is really the mail spool directory, you should; \ | 212 | echo Assuming $$dir is really the mail spool directory, you should; \ |
| @@ -219,11 +215,14 @@ need-blessmail: blessmail | |||
| 219 | echo Do that after running make install.; \ | 215 | echo Do that after running make install.; \ |
| 220 | fi | 216 | fi |
| 221 | 217 | ||
| 222 | /* This is the target invoked by the top-level Makefile. */ | 218 | ## This is the target invoked by the top-level Makefile. |
| 223 | maybe-blessmail: $(BLESSMAIL_TARGET) | 219 | maybe-blessmail: $(BLESSMAIL_TARGET) |
| 224 | 220 | ||
| 225 | /* Install the internal utilities. Until they are installed, we can | 221 | ## Install the internal utilities. Until they are installed, we can |
| 226 | just run them directly from lib-src. */ | 222 | ## just run them directly from lib-src. |
| 223 | ## If the chown/chmod commands fail, that is not a big deal. | ||
| 224 | ## update-game-score will detect at runtime that it is not setuid, | ||
| 225 | ## and handle things accordingly. | ||
| 227 | $(DESTDIR)${archlibdir}: all | 226 | $(DESTDIR)${archlibdir}: all |
| 228 | @echo | 227 | @echo |
| 229 | @echo "Installing utilities run internally by Emacs." | 228 | @echo "Installing utilities run internally by Emacs." |
| @@ -236,9 +235,6 @@ $(DESTDIR)${archlibdir}: all | |||
| 236 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ | 235 | umask 022; $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir}; \ |
| 237 | touch $(DESTDIR)${gamedir}/snake-scores; \ | 236 | touch $(DESTDIR)${gamedir}/snake-scores; \ |
| 238 | touch $(DESTDIR)${gamedir}/tetris-scores | 237 | touch $(DESTDIR)${gamedir}/tetris-scores |
| 239 | /* If the following commands fail, that is not a big deal. | ||
| 240 | update-game-score will detect at runtime that it is not setuid, | ||
| 241 | and handle things accordingly. */ | ||
| 242 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ | 238 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ |
| 243 | chown ${gameuser} $(DESTDIR)${gamedir}; \ | 239 | chown ${gameuser} $(DESTDIR)${gamedir}; \ |
| 244 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ | 240 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ |
| @@ -289,7 +285,7 @@ maintainer-clean: distclean | |||
| 289 | extraclean: maintainer-clean | 285 | extraclean: maintainer-clean |
| 290 | -rm -f *~ \#* | 286 | -rm -f *~ \#* |
| 291 | 287 | ||
| 292 | /* Test the contents of the directory. */ | 288 | ## Test the contents of the directory. |
| 293 | check: | 289 | check: |
| 294 | @echo "We don't have any tests for GNU Emacs yet." | 290 | @echo "We don't have any tests for GNU Emacs yet." |
| 295 | 291 | ||
| @@ -297,16 +293,16 @@ tags: TAGS | |||
| 297 | TAGS: etags${EXEEXT} | 293 | TAGS: etags${EXEEXT} |
| 298 | etags *.[ch] | 294 | etags *.[ch] |
| 299 | 295 | ||
| 300 | /* This verifies that the non-ASCII characters in the file \`testfile\' | 296 | ## This verifies that the non-ASCII characters in the file \`testfile\' |
| 301 | have not been clobbered by whatever means were used to copy and | 297 | ## have not been clobbered by whatever means were used to copy and |
| 302 | distribute Emacs. If they were clobbered, all the .elc files were | 298 | ## distribute Emacs. If they were clobbered, all the .elc files were |
| 303 | clobbered too. */ | 299 | ## clobbered too. |
| 304 | test-distrib${EXEEXT}: ${srcdir}/test-distrib.c | 300 | test-distrib${EXEEXT}: ${srcdir}/test-distrib.c |
| 305 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c | 301 | $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
| 306 | ./test-distrib ${srcdir}/testfile | 302 | ./test-distrib ${srcdir}/testfile |
| 307 | 303 | ||
| 308 | /* We need the following in order to create a <getopt.h> when the system | 304 | ## We need the following in order to create a <getopt.h> when the system |
| 309 | does not have one that works with the given compiler. */ | 305 | ## does not have one that works with the given compiler. |
| 310 | GETOPT_H = @GETOPT_H@ | 306 | GETOPT_H = @GETOPT_H@ |
| 311 | getopt.h: getopt_.h | 307 | getopt.h: getopt_.h |
| 312 | cp $(srcdir)/getopt_.h $@-t | 308 | cp $(srcdir)/getopt_.h $@-t |
| @@ -331,8 +327,8 @@ etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h | |||
| 331 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h | 327 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h |
| 332 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse | 328 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse |
| 333 | 329 | ||
| 334 | /* We depend on etags to assure that parallel makes don\'t write two | 330 | ## We depend on etags to assure that parallel makes do not write two |
| 335 | etags.o files on top of each other. */ | 331 | ## etags.o files on top of each other. |
| 336 | ctags${EXEEXT}: etags${EXEEXT} | 332 | ctags${EXEEXT}: etags${EXEEXT} |
| 337 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags | 333 | $(CC) ${ALL_CFLAGS} -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags |
| 338 | 334 | ||
| @@ -355,7 +351,7 @@ b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) | |||
| 355 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) | 351 | movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
| 356 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail | 352 | $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MOVE) -o movemail |
| 357 | 353 | ||
| 358 | /* We need to define emacs to get the right version of something (what?). */ | 354 | ## We need to define emacs to get the right version of something (what?). |
| 359 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) | 355 | movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) |
| 360 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c | 356 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c |
| 361 | 357 | ||
| @@ -379,3 +375,5 @@ update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) | |||
| 379 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) | 375 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) |
| 380 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ | 376 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ |
| 381 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" | 377 | -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" |
| 378 | |||
| 379 | ## Makefile ends here. | ||