diff options
| author | Glenn Morris | 2011-05-24 19:33:35 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-05-24 19:33:35 -0700 |
| commit | e949074338d3f5ccc7475721c7421eef6aea68d4 (patch) | |
| tree | 599676ffaf26f7ecdde645f2de758f906b89ccdc /lib-src | |
| parent | d114d4f36e63c030b75b1bcc13c075db57e4152a (diff) | |
| download | emacs-e949074338d3f5ccc7475721c7421eef6aea68d4.tar.gz emacs-e949074338d3f5ccc7475721c7421eef6aea68d4.zip | |
Small further clean-up in lib-src/Makefile.in
* lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule).
(insrcdir): New.
(stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
Use $insrcdir to suppress unaesthetic ignored errors.
(clean): Simplify list of things to delete.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a7cbeba8227..d404518c077 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-05-25 Glenn Morris <rgm@gnu.org> | 1 | 2011-05-25 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (.c.o): Remove (every .o file has an explicit rule). | ||
| 4 | (insrcdir): New. | ||
| 5 | (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff): | ||
| 6 | Use $insrcdir to suppress unaesthetic ignored errors. | ||
| 7 | (clean): Simplify list of things to delete. | ||
| 8 | |||
| 3 | * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file. | 9 | * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file. |
| 4 | 10 | ||
| 5 | * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion. | 11 | * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion. |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index a7f224a31ac..2b9ef010e5e 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -178,33 +178,27 @@ CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} | |||
| 178 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) | 178 | LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) |
| 179 | $(EXE_FILES): ../lib/libgnu.a | 179 | $(EXE_FILES): ../lib/libgnu.a |
| 180 | 180 | ||
| 181 | ## This is the default compilation command. | ||
| 182 | ## But we should never rely on it, because some make version failed to | ||
| 183 | ## find it for getopt.o. | ||
| 184 | ## Using an explicit command made it work. | ||
| 185 | .c.o: | ||
| 186 | ${CC} -c ${CPP_CFLAGS} $< | ||
| 187 | |||
| 188 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} | 181 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} |
| 189 | 182 | ||
| 190 | ## These targets copy the scripts into the build directory so that | 183 | ## These targets copy the scripts into the build directory so that |
| 191 | ## they can be run from there in an uninstalled Emacs. | 184 | ## they can be run from there in an uninstalled Emacs. |
| 192 | ## The "-" is prepended because some versions of cp barf when srcdir | 185 | ## Nothing to do if pwd = srcdir. |
| 193 | ## is the current directory, and thus the file will be copied into itself. | 186 | insrcdir=[ "`/bin/pwd`" = "`(cd $(srcdir) && /bin/pwd)`" ] |
| 187 | |||
| 194 | stamp-rcs2log: $(srcdir)/rcs2log | 188 | stamp-rcs2log: $(srcdir)/rcs2log |
| 195 | -cp -p $(srcdir)/rcs2log rcs2log | 189 | $(insrcdir) || cp -p $(srcdir)/rcs2log rcs2log |
| 196 | touch $@ | 190 | touch $@ |
| 197 | 191 | ||
| 198 | stamp-rcs-checkin: $(srcdir)/rcs-checkin | 192 | stamp-rcs-checkin: $(srcdir)/rcs-checkin |
| 199 | -cp -p $(srcdir)/rcs-checkin rcs-checkin | 193 | $(insrcdir) || cp -p $(srcdir)/rcs-checkin rcs-checkin |
| 200 | touch $@ | 194 | touch $@ |
| 201 | 195 | ||
| 202 | stamp-grep-changelog: $(srcdir)/grep-changelog | 196 | stamp-grep-changelog: $(srcdir)/grep-changelog |
| 203 | -cp -p $(srcdir)/grep-changelog grep-changelog | 197 | $(insrcdir) || cp -p $(srcdir)/grep-changelog grep-changelog |
| 204 | touch $@ | 198 | touch $@ |
| 205 | 199 | ||
| 206 | stamp-vcdiff: $(srcdir)/vcdiff | 200 | stamp-vcdiff: $(srcdir)/vcdiff |
| 207 | -cp -p $(srcdir)/vcdiff vcdiff | 201 | $(insrcdir) || cp -p $(srcdir)/vcdiff vcdiff |
| 208 | touch $@ | 202 | touch $@ |
| 209 | 203 | ||
| 210 | ## Only used if we need blessmail, but no harm in always defining. | 204 | ## Only used if we need blessmail, but no harm in always defining. |
| @@ -282,7 +276,7 @@ mostlyclean: | |||
| 282 | 276 | ||
| 283 | clean: mostlyclean | 277 | clean: mostlyclean |
| 284 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} | 278 | -rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
| 285 | -rm -f fns*.el *.tab.c *.tab.h stamp-* | 279 | -rm -f ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} |
| 286 | 280 | ||
| 287 | distclean: clean | 281 | distclean: clean |
| 288 | -rm -f TAGS | 282 | -rm -f TAGS |