Build Fix -- compatibility issue with newer autoconf
[sxemacs] / modules / Makefile.am
1 ## SXEmacs Makefile.am
2
3 ## Copyright (C) 2007 Steve Youngs.
4
5 ## This file is part of SXEmacs.
6
7 ## SXEmacs is free software: you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by the
9 ## Free Software Foundation, either version 3 of the License, or (at your
10 ## option) any later version.
11
12 ## SXEmacs is distributed in the hope that it will be
13 ## useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 ## General Public License for more details.
16
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 ## Process this file with automake to produce Makefile.in
21
22 # Help the Developers and yourself. Just use the C locale and settings
23 # for the compilation. They can still be overriden by make LANG=<whatever>
24 # but that is general a not very good idea
25 LANG=C
26 LC_ALL=C
27
28 builddir = @builddir@
29 srcdir = @srcdir@
30 top_builddir = @top_builddir@
31 top_build_prefix = $(top_builddir)/
32 top_srcdir = @top_srcdir@
33 abs_builddir = @abs_builddir@
34 abs_top_builddir = @abs_top_builddir@
35 abs_top_srcdir = @abs_top_srcdir@
36
37 ETAGS = $(top_builddir)/lib-src/etags
38 TAGS_DEPENDENCIES = $(ETAGS)
39
40 sxesrcdir = $(top_srcdir)/src
41 bldsrcdir = $(top_builddir)/src
42 sxelispdir = $(abs_top_srcdir)/lisp
43 bldlispdir = $(abs_top_builddir)/lisp
44 sxelwlibdir = $(top_srcdir)/src/ui/lwlib
45 bldlwlibdir = $(top_builddir)/src/ui/lwlib
46
47 sitemodule_DATA =
48
49 EXTRA_DIST = autogen.sh
50 SUBDIRS =
51 if DESCEND_ASE
52 SUBDIRS += ase
53 endif
54 if DESCEND_CL
55 SUBDIRS += cl
56 endif
57 # if DESCEND_DBUS
58 # SUBDIRS += dbus
59 # endif
60 ## ldap is fucking broken, we dont add it
61
62 ### handled in master Makefile.am
63 ##if !AUTARKIC
64 #module_DATA = auto-autoloads.el auto-autoloads.elc
65 ##endif
66
67 CLEANFILES = auto-autoloads.el* stage1 stage2
68
69 SXEMACS = $(top_builddir)/src/sxemacs
70 BITCH = $(SXEMACS) -batch
71 SXE_DYLD_PATH = $(bldsrcdir):$(bldsrcdir)/$(LT_OBJDIR):$(bldlwlibdir):$(bldlwlibdir)/$(LT_OBJDIR):$(DESTDIR)$(libdir)
72 BATCHENV = DYLD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$DYLD_LIBRARY_PATH:$(DYLD_LIBRARY_PATH) \
73         LD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$LD_LIBRARY_PATH:$(LD_LIBRARY_PATH) \
74         SHLIB_PATH=$(SXE_DYLD_PATH):$$SHLIB_PATH:$(SHLIB_PATH)
75 BITCHENV = $(BATCHENV) \
76         EMACSPACKAGEPATH= \
77         SOURCE_TREE_ROOT=$(abs_top_srcdir) \
78         BUILD_TREE_ROOT=$(abs_top_builddir)
79 BATCH = $(BITCHENV) $(BITCH)
80 PUREBATCH = $(BITCHENV) $(PITCH)
81
82 auto-autoloads.el: $(SXEMACS)
83         @touch $@
84
85
86 SUFFIXES = .el .elc
87 .el.elc: $(SXEMACS)
88         $(BATCHENV) $(BATCH) -vanilla -l bytecomp \
89                 -f batch-byte-compile-one-file-here $<
90
91 #stage1: all-am
92 #       @touch $@
93 #
94 #stage2: stage1 auto-autoloads.el
95 #       @touch $@
96 #
97 #all: stage1 stage2