Merge remote-tracking branch 'origin/master' into for-steve
[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 ## ldap is fucking broken, we dont add it
58
59 ### handled in master Makefile.am
60 ##if !AUTARKIC
61 #module_DATA = auto-autoloads.el auto-autoloads.elc
62 ##endif
63
64 CLEANFILES = auto-autoloads.el* stage1 stage2
65
66 SXEMACS = $(top_builddir)/src/sxemacs
67 BITCH = $(SXEMACS) -batch
68 SXE_DYLD_PATH = $(bldsrcdir):$(bldsrcdir)/$(LT_OBJDIR):$(bldlwlibdir):$(bldlwlibdir)/$(LT_OBJDIR):$(DESTDIR)$(libdir)
69 BATCHENV = DYLD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$DYLD_LIBRARY_PATH:$(DYLD_LIBRARY_PATH) \
70         LD_LIBRARY_PATH=$(SXE_DYLD_PATH):$$LD_LIBRARY_PATH:$(LD_LIBRARY_PATH) \
71         SHLIB_PATH=$(SXE_DYLD_PATH):$$SHLIB_PATH:$(SHLIB_PATH)
72 BITCHENV = $(BATCHENV) \
73         EMACSPACKAGEPATH= \
74         SOURCE_TREE_ROOT=$(abs_top_srcdir) \
75         BUILD_TREE_ROOT=$(abs_top_builddir)
76 BATCH = $(BITCHENV) $(BITCH)
77 PUREBATCH = $(BITCHENV) $(PITCH)
78
79 auto-autoloads.el: $(SXEMACS)
80         @touch $@
81
82
83 SUFFIXES = .el .elc
84 .el.elc: $(SXEMACS)
85         $(BATCHENV) $(BATCH) -vanilla -l bytecomp \
86                 -f batch-byte-compile-one-file-here $<
87
88 #stage1: all-am
89 #       @touch $@
90 #
91 #stage2: stage1 auto-autoloads.el
92 #       @touch $@
93 #
94 #all: stage1 stage2