emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100397: Handle some HAVE_NS Makefile


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100397: Handle some HAVE_NS Makefile conditionals with configure.
Date: Thu, 20 May 2010 17:48:14 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100397
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2010-05-20 17:48:14 -0700
message:
  Handle some HAVE_NS Makefile conditionals with configure.
  
  * configure.in (ns_frag): New output file.
  
  * src/Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
  Move these rules to ns.mk.
  * ns.mk: New file.  Copyright years based on date of nextstep merge.
  
  * msdos/sed1v2.inp(@ns_frag@): Edit to nothing.
added:
  src/ns.mk
modified:
  ChangeLog
  configure.in
  msdos/ChangeLog
  msdos/sed1v2.inp
  src/ChangeLog
  src/Makefile.in
=== modified file 'ChangeLog'
--- a/ChangeLog 2010-05-21 00:40:12 +0000
+++ b/ChangeLog 2010-05-21 00:48:14 +0000
@@ -1,5 +1,7 @@
 2010-05-21  Glenn Morris  <address@hidden>
 
+       * configure.in (ns_frag): New output file.
+
        * configure.in (OLDXMENU): Set to "nothing" if !HAVE_X11 || USE_GTK.
        (OLDXMENU_TARGET): Set to empty if USE_GTK.
 

=== modified file 'configure.in'
--- a/configure.in      2010-05-21 00:40:12 +0000
+++ b/configure.in      2010-05-21 00:48:14 +0000
@@ -1525,6 +1525,7 @@
 AC_SUBST(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS)
 AC_SUBST(TEMACS_LDFLAGS2)
 
+ns_frag=/dev/null
 NS_OBJ=
 NS_SUPPORT=
 if test "${HAVE_NS}" = yes; then
@@ -1536,6 +1537,7 @@
   if test "${EN_NS_SELF_CONTAINED}" = yes; then
      prefix=${ns_appresdir}
   fi
+  ns_frag=$srcdir/src/ns.mk
   NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o 
fringe.o image.o"
   NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc 
\${lispsource}term/ns-win.elc"
 fi
@@ -1544,6 +1546,7 @@
 AC_SUBST(NS_OBJ)
 AC_SUBST(NS_SUPPORT)
 AC_SUBST(LIB_STANDARD)
+AC_SUBST_FILE(ns_frag)
 
 case "${window_system}" in
   x11 )

=== modified file 'msdos/ChangeLog'
--- a/msdos/ChangeLog   2010-05-21 00:40:12 +0000
+++ b/msdos/ChangeLog   2010-05-21 00:48:14 +0000
@@ -1,5 +1,7 @@
 2010-05-21  Glenn Morris  <address@hidden>
 
+       * sed1v2.inp(@ns_frag@): Edit to nothing.
+
        * sed1x.inp (OLDXMENU): Replace any initial value.
        * sed1v2.inp (OLDXMENU): Edit to "nothing".
 

=== modified file 'msdos/sed1v2.inp'
--- a/msdos/sed1v2.inp  2010-05-21 00:40:12 +0000
+++ b/msdos/sed1v2.inp  2010-05-21 00:48:14 +0000
@@ -149,6 +149,7 @@
 /^[    ]touch /s/touch/djecho $@ >/
 s/@YMF_PASS_LDFLAGS@/flags/
 s/@deps_frag@//
+s/@ns_frag@//
 s/bootstrap-emacs/b-emacs/
 s/bootstrap-temacs/b-temacs/
 s/bootstrap-doc/b-doc/

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-05-21 00:40:12 +0000
+++ b/src/ChangeLog     2010-05-21 00:48:14 +0000
@@ -1,5 +1,9 @@
 2010-05-21  Glenn Morris  <address@hidden>
 
+       * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
+       Move these rules to ns.mk.
+       * ns.mk: New file.
+
        * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
 
        * Makefile.in (CANNOT_DUMP): New, set by configure.

=== modified file 'src/Makefile.in'
--- a/src/Makefile.in   2010-05-21 00:40:12 +0000
+++ b/src/Makefile.in   2010-05-21 00:48:14 +0000
@@ -700,22 +700,9 @@
 doc.o: buildobj.h
 
 
-/* System-specific programs to be made.
-   OTHER_FILES select which of these should be compiled.  */
-
-#ifdef HAVE_NS
-${ns_appdir}: ${ns_appsrc}
-       rm -fr ${ns_appdir}
-       mkdir -p ${ns_appdir}
-       ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar 
xf - )
-#endif /* HAVE_NS */
-
-/* These are only used if HAVE_NS, but no harm in always defining them.  */
-${ns_appbindir}Emacs: emacs${EXEEXT}
-       mkdir -p ${ns_appbindir}
-       cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
-
-ns-app: ${ns_appdir} ${ns_appbindir}Emacs
+/* If HAVE_NS, some ns-specific rules (for OTHER_FILES) are inserted here.  */
address@hidden@
+
 
 mostlyclean:
        rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o 
libXMenu11.a liblw.a

=== added file 'src/ns.mk'
--- a/src/ns.mk 1970-01-01 00:00:00 +0000
+++ b/src/ns.mk 2010-05-21 00:48:14 +0000
@@ -0,0 +1,39 @@
+/* autodeps.mk --- src/Makefile fragment for GNU Emacs
+
+Copyright (C) 2008, 2009, 2010  Free Software Foundation, Inc.
+
+This file is part of GNU Emacs.
+
+GNU Emacs is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+GNU Emacs is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
+
+Commentary:
+
+This is inserted in src/Makefile if HAVE_NS. 
+
+The only reason this is in a separate file is because $ns_appdir,
+which appears as a target, is empty on non-NS builds.  Some makes
+do not like empty targets, even if they are never used.  */
+
+${ns_appdir}: ${ns_appsrc}
+       rm -fr ${ns_appdir}
+       mkdir -p ${ns_appdir}
+       ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; umask 022; tar 
xf - )
+
+${ns_appbindir}Emacs: emacs${EXEEXT}
+       mkdir -p ${ns_appbindir}
+       cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
+
+ns-app: ${ns_appdir} ${ns_appbindir}Emacs
+
+/* ns.mk ends here  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]