aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-05-20 17:40:12 -0700
committerGlenn Morris2010-05-20 17:40:12 -0700
commit04384b2d186ef8e3fb77f644d6621fc52b83c99a (patch)
tree1df16d1d63a2bfa0357d0c2bf4d1385ec2020c2f /src
parent7e222e4e61c7cfdd0d3bb7a2d85971d36dacaf22 (diff)
downloademacs-04384b2d186ef8e3fb77f644d6621fc52b83c99a.tar.gz
emacs-04384b2d186ef8e3fb77f644d6621fc52b83c99a.zip
Build simplifications for oldxmenu.
* configure.in (OLDXMENU): Set to "nothing" if !HAVE_X11 || USE_GTK. (OLDXMENU_TARGET): Set to empty if USE_GTK. * src/Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules. * msdos/sed1x.inp (OLDXMENU): Replace any initial value. * msdos/sed1v2.inp (OLDXMENU): Edit to "nothing".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/Makefile.in20
2 files changed, 15 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5c99ed91434..5335dfc150d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-05-21 Glenn Morris <rgm@gnu.org> 12010-05-21 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4
3 * Makefile.in (CANNOT_DUMP): New, set by configure. 5 * Makefile.in (CANNOT_DUMP): New, set by configure.
4 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP. 6 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5 7
diff --git a/src/Makefile.in b/src/Makefile.in
index dd1eec73c1f..8c2994f6e8a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -173,13 +173,20 @@ LIBXTR6=@LIBXTR6@
173## Only used if HAVE_X_WINDOWS. 173## Only used if HAVE_X_WINDOWS.
174LIBXT_OTHER=@LIBXT_OTHER@ 174LIBXT_OTHER=@LIBXT_OTHER@
175 175
176## Only used if HAVE_X11 && !USE_GTK. 176## If !HAVE_X11 || USE_GTK, empty.
177## really-lwlib if USE_X_TOOLKIT, else really-oldxmenu. 177## Else if USE_X_TOOLKIT really-lwlib, else really-oldxmenu.
178OLDXMENU_TARGET=@OLDXMENU_TARGET@ 178OLDXMENU_TARGET=@OLDXMENU_TARGET@
179 179
180## If !HAVE_X11 || USE_GTK, empty. 180## If !HAVE_X11 || USE_GTK, empty.
181## Else if USE_X_TOOLKIT, ${lwlibdir}liblw.a. 181## Else if USE_X_TOOLKIT, ${lwlibdir}liblw.a.
182## Else ${oldXMenudir}libXMenu11.a. 182## Else ${oldXMenudir}libXMenu11.a.
183## (Actually, rather than being empty, it is set to "nothing".
184## It is never actually used for anything in this case.
185## This is done because there is a rule with target $(OLDXMENU) below,
186## and I think it might be a syntax error with some makes to have
187## an empty target, even if the associated rule is never run.
188## http://lists.gnu.org/archive/html/help-make/2010-05/msg00058.html
189## The alternative would be to put that rule in a makefile fragment.)
183OLDXMENU=@OLDXMENU@ 190OLDXMENU=@OLDXMENU@
184 191
185## If HAVE_X11 && !USE_GTK, ${OLDXMENU} ../src/${OLDXMENU}; else empty. 192## If HAVE_X11 && !USE_GTK, ${OLDXMENU} ../src/${OLDXMENU}; else empty.
@@ -290,6 +297,7 @@ DEPDIR=deps
290## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. 297## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty.
291DEPFLAGS=@DEPFLAGS@ 298DEPFLAGS=@DEPFLAGS@
292## test -d ${DEPDIR} || mkdir ${DEPDIR} (if AUTO_DEPEND); else ':'. 299## test -d ${DEPDIR} || mkdir ${DEPDIR} (if AUTO_DEPEND); else ':'.
300## FIXME This can fail in parallel builds. Use mkinstalldirs instead?
293MKDEPDIR=@MKDEPDIR@ 301MKDEPDIR=@MKDEPDIR@
294 302
295# ========================== start of cpp stuff ======================= 303# ========================== start of cpp stuff =======================
@@ -651,8 +659,9 @@ prefix-args${EXEEXT}: prefix-args.o $(config_h)
651 $(CC) $(LDFLAGS) prefix-args.o -o prefix-args 659 $(CC) $(LDFLAGS) prefix-args.o -o prefix-args
652 660
653 661
654/* Only (possibly) used if HAVE_X11 && !USE_GTK, but no harm in always 662/* The following oldxmenu-related rules are only (possibly) used if
655 defining. */ 663 HAVE_X11 && !USE_GTK, but there is no harm in always defining them
664 (provided we take a little care that OLDXMENU is never empty). */
656really-lwlib: 665really-lwlib:
657 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ 666 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
658 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 667 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
@@ -670,13 +679,10 @@ really-oldXMenu:
670stamp-oldxmenu: ${OLDXMENU_DEPS} 679stamp-oldxmenu: ${OLDXMENU_DEPS}
671 touch stamp-oldxmenu 680 touch stamp-oldxmenu
672 681
673/* HAVE_X11 implies HAVE_X_WINDOWS and HAVE_MENUS. */
674#if defined (HAVE_X11) && ! defined (USE_GTK)
675/* Supply an ordering for parallel make. */ 682/* Supply an ordering for parallel make. */
676../src/$(OLDXMENU): ${OLDXMENU} 683../src/$(OLDXMENU): ${OLDXMENU}
677 684
678$(OLDXMENU): $(OLDXMENU_TARGET) 685$(OLDXMENU): $(OLDXMENU_TARGET)
679#endif /* HAVE_X11 && !USE_GTK */
680 686
681../config.status:: epaths.in 687../config.status:: epaths.in
682 @echo "The file epaths.h needs to be set up from epaths.in." 688 @echo "The file epaths.h needs to be set up from epaths.in."