Build improvements
authorNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 18 Apr 2011 16:07:50 +0000 (12:07 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 18 Apr 2011 16:07:50 +0000 (12:07 -0400)
* autogen.sh: when outside of "proper" git repos
              try to be friendlier by using the
              defaults and suggest the tag command.

* src/Emacs{Frame,Manager,Shell}*, src/External*:
              moved into src/ui/X11 as that is the
              proper place for those files

* src/Makefile.am, src/ui/X11/Makefile.am:
              adjust targets for move of the files

* src/mule/input-method-motif.c: adjust header path
* src/ui/lwlib/lwlib-Xlw.c: ditto

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
24 files changed:
autogen.sh
src/Makefile.am
src/mule/input-method-motif.c
src/ui/X11/EmacsFrame.c [moved from src/EmacsFrame.c with 100% similarity]
src/ui/X11/EmacsFrame.h [moved from src/EmacsFrame.h with 100% similarity]
src/ui/X11/EmacsFrameP.h [moved from src/EmacsFrameP.h with 100% similarity]
src/ui/X11/EmacsManager.c [moved from src/EmacsManager.c with 100% similarity]
src/ui/X11/EmacsManager.h [moved from src/EmacsManager.h with 100% similarity]
src/ui/X11/EmacsManagerP.h [moved from src/EmacsManagerP.h with 100% similarity]
src/ui/X11/EmacsShell-sub.c [moved from src/EmacsShell-sub.c with 100% similarity]
src/ui/X11/EmacsShell.c [moved from src/EmacsShell.c with 100% similarity]
src/ui/X11/EmacsShell.h [moved from src/EmacsShell.h with 100% similarity]
src/ui/X11/EmacsShellP.h [moved from src/EmacsShellP.h with 100% similarity]
src/ui/X11/ExternalClient-Xlib.c [moved from src/ExternalClient-Xlib.c with 100% similarity]
src/ui/X11/ExternalClient.c [moved from src/ExternalClient.c with 100% similarity]
src/ui/X11/ExternalClient.h [moved from src/ExternalClient.h with 100% similarity]
src/ui/X11/ExternalClientP.h [moved from src/ExternalClientP.h with 100% similarity]
src/ui/X11/ExternalShell.c [moved from src/ExternalShell.c with 100% similarity]
src/ui/X11/ExternalShell.h [moved from src/ExternalShell.h with 100% similarity]
src/ui/X11/ExternalShellP.h [moved from src/ExternalShellP.h with 100% similarity]
src/ui/X11/Makefile.am
src/ui/X11/xintrinsic.h [moved from src/xintrinsic.h with 100% similarity]
src/ui/X11/xintrinsicp.h [moved from src/xintrinsicp.h with 100% similarity]
src/ui/lwlib/lwlib-Xlw.c

index 23cc576..3876839 100755 (executable)
@@ -26,9 +26,16 @@ emacs_is_beta=t
 if test -n "$GIT" -a -n "$($GIT symbolic-ref HEAD 2>/dev/null)"; then
        TREE_VERSION="$($GIT tag|tail -n1|tr -d v)"
        GIT_VERSION="$($GIT describe)"
-else
+       IN_GIT="1"
+fi
+if test -z "$TREE_VERSION"; then
        TREE_VERSION="22.1.14"
-       GIT_VERSION="no_git_version"
+        if test -n "$IN_GIT"; then
+           echo "If you cloned this branch into your own you should issue: git tag -s v${TREE_VERSION}.<your branch_name>"
+       fi
+fi
+if test -z "$GIT_VERSION"; then
+       GIT_VERSION="${TREE_VERSION}-no_git_version"
 fi
 
 emacs_major_version="$(echo $TREE_VERSION|cut -d. -f1)"
index 7dc66a0..6b8791e 100644 (file)
@@ -138,8 +138,7 @@ nodumplibs  += $(builddir)/mem/libmemalloc.a
 # because libsxemem already is there
 endif
 if DESCEND_LWLIB
-nodumplibs += libsxeX.a
-noinst_nodumplibs += libsxeX.a
+nodumplibs += $(builddir)/ui/X11/libsxeX.a
 endif
 
 SUBDIRS += $(sxe_subdirs)
@@ -241,33 +240,6 @@ libcruft_a_LIBADD = $(libcruft_objs)
 libcruft_a_DEPENDENCIES = $(libcruft_a_LIBADD)
 all_sources += $(libcruft_a_sources) $(extra_objs:.o=.c)
 
-## just a trick :( we create these libraries to get the object files
-if DESCEND_LWLIB
-noinst_LIBRARIES += libTopLevelEmacsShell.a libTransientEmacsShell.a
-libTopLevelEmacsShell_a_SOURCES = EmacsShell-sub.c
-libTopLevelEmacsShell_a_CFLAGS = -DDEFINE_TOP_LEVEL_EMACS_SHELL
-libTopLevelEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-libTransientEmacsShell_a_SOURCES = EmacsShell-sub.c
-libTransientEmacsShell_a_CFLAGS = -DDEFINE_TRANSIENT_EMACS_SHELL
-libTransientEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-endif
-libsxeX_a_headers = \
-       EmacsFrame.h EmacsFrameP.h EmacsManager.h EmacsManagerP.h          \
-       EmacsShell.h EmacsShellP.h ExternalClient.h ExternalClientP.h      \
-       ExternalShell.h ExternalShellP.h xintrinsic.h xintrinsicp.h
-libsxeX_a_sources = \
-       EmacsFrame.c EmacsShell.c EmacsManager.c
-if WITH_EXTW
-libsxeX_a_sources += ExternalShell.c 
-## extw-Xt-nonshared.c extw-Xlib-nonshared.c where are these????
-endif
-libsxeX_a_SOURCES = $(libsxeX_a_headers) $(libsxeX_a_sources)
-libsxeX_a_LIBADD =                             \
-       $(libTransientEmacsShell_a_OBJECTS)     \
-       $(libTopLevelEmacsShell_a_OBJECTS)
-libsxeX_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
-libsxeX_a_DEPENDENCIES = libTopLevelEmacsShell.a libTransientEmacsShell.a
-all_sources += $(libsxeX_a_sources) $(libsxeX_a_LIBADD:.o=.c)
 
 ### custom rules
 SXEMACS = $(bldsrcdir)/sxemacs
index 569583e..af1d2b8 100644 (file)
@@ -28,7 +28,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 #include "ui/X11/console-x.h"
 #include "ui/device.h"
 #include "ui/frame.h"
-#include "EmacsFrame.h"
+#include "ui/X11/EmacsFrame.h"
 #include <Xm/Xm.h>
 
 #ifndef XIM_MOTIF
similarity index 100%
rename from src/EmacsFrame.c
rename to src/ui/X11/EmacsFrame.c
similarity index 100%
rename from src/EmacsFrame.h
rename to src/ui/X11/EmacsFrame.h
similarity index 100%
rename from src/EmacsFrameP.h
rename to src/ui/X11/EmacsFrameP.h
similarity index 100%
rename from src/EmacsManager.c
rename to src/ui/X11/EmacsManager.c
similarity index 100%
rename from src/EmacsManager.h
rename to src/ui/X11/EmacsManager.h
similarity index 100%
rename from src/EmacsShell.c
rename to src/ui/X11/EmacsShell.c
similarity index 100%
rename from src/EmacsShell.h
rename to src/ui/X11/EmacsShell.h
similarity index 100%
rename from src/EmacsShellP.h
rename to src/ui/X11/EmacsShellP.h
index 0d50ebe..1b5e66c 100644 (file)
@@ -49,6 +49,35 @@ all_sources=
 noinst_LIBRARIES=
 header_HEADERS=$(acgen_headers) 
 
+## just a trick :( we create these libraries to get the object files
+if DESCEND_LWLIB
+noinst_LIBRARIES += libTopLevelEmacsShell.a libTransientEmacsShell.a
+libTopLevelEmacsShell_a_SOURCES = EmacsShell-sub.c
+libTopLevelEmacsShell_a_CFLAGS = -DDEFINE_TOP_LEVEL_EMACS_SHELL
+libTopLevelEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+libTransientEmacsShell_a_SOURCES = EmacsShell-sub.c
+libTransientEmacsShell_a_CFLAGS = -DDEFINE_TRANSIENT_EMACS_SHELL
+libTransientEmacsShell_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+endif
+libsxeX_a_headers = \
+       EmacsFrame.h EmacsFrameP.h EmacsManager.h EmacsManagerP.h          \
+       EmacsShell.h EmacsShellP.h ExternalClient.h ExternalClientP.h      \
+       ExternalShell.h ExternalShellP.h xintrinsic.h xintrinsicp.h
+libsxeX_a_sources = \
+       EmacsFrame.c EmacsShell.c EmacsManager.c
+if WITH_EXTW
+libsxeX_a_sources += ExternalShell.c 
+## extw-Xt-nonshared.c extw-Xlib-nonshared.c where are these????
+endif
+libsxeX_a_SOURCES = $(libsxeX_a_headers) $(libsxeX_a_sources)
+libsxeX_a_LIBADD =                             \
+       $(libTransientEmacsShell_a_OBJECTS)     \
+       $(libTopLevelEmacsShell_a_OBJECTS)
+libsxeX_a_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS)
+libsxeX_a_DEPENDENCIES = libTopLevelEmacsShell.a libTransientEmacsShell.a
+noinst_LIBRARIES += libsxeX.a
+all_sources += $(libsxeX_a_sources) $(libsxeX_a_LIBADD:.o=.c)
+
 libsxeuiX11_a_headers = \
        balloon_help.h                                          \
        console-x.h extw-Xlib.h extw-Xt.h                       \
similarity index 100%
rename from src/xintrinsic.h
rename to src/ui/X11/xintrinsic.h
similarity index 100%
rename from src/xintrinsicp.h
rename to src/ui/X11/xintrinsicp.h
index 82aef57..d4777d6 100644 (file)
@@ -29,7 +29,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 #include <X11/CompositeP.h>
 #include <X11/Shell.h>
 #ifdef HAVE_WIDGETS
-#include "EmacsManager.h"
+#include "ui/X11/EmacsManager.h"
 #endif
 #ifdef LWLIB_MENUBARS_LUCID
 #include "xlwmenu.h"