10 PACKAGEDIR = @PACKAGEDIR@
11 GNUS_PRODUCT_NAME = @GNUS_PRODUCT_NAME@
13 # It may be needed for Meadow/NTEmacs when sh.exe is used for SHELL.
14 # Because Meadow/NTEmacs will get the value of the current-directory from
15 # the environment variable PWD, but sh.exe will not take care of it even
16 # if the current-directory has changed. So we should invalidate it.
19 # It will be used to look for the XEmacs package path if this file is
20 # mis-configured (e.g. configured for FSFmacs).
21 EXAMINE_PACKAGEDIR = $(XEMACS) -batch -q -no-site-file -eval \
23 (if (boundp (quote early-packages)) \
24 (let ((dirs (delq nil (append (if early-package-load-path \
26 (if late-package-load-path \
28 (if last-package-load-path \
30 (while (and dirs (not package-dir)) \
31 (if (file-directory-p (car dirs)) \
32 (setq package-dir (car dirs) \
33 dirs (cdr dirs)))))) \
34 (princ (or package-dir \"\")))" 2>/dev/null
38 all-ja: lick info info-ja
41 cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" all
43 #install: install-lisp install-info install-etc
44 install: install-lisp install-info
46 install-ja: install install-info-ja
49 cd lisp && $(MAKE) EMACS="$(EMACS)" lispdir="$(lispdir)" install
52 cd texi && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install
55 cd etc && $(MAKE) EMACS="$(EMACS)" install
58 cd texi && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install-ja
60 ## Rule for XEmacs package.
61 install-package: xclever compose-package remove-extra-files-in-package \
62 install-package-lisp \
63 install-package-info install-package-manifest
65 install-package-ja: xclever compose-package remove-extra-files-in-package \
66 install-package-lisp \
67 install-package-info install-package-info-ja \
68 install-package-manifest
70 package: xlick xinfo compose-package
72 package-ja: xlick xinfo xinfo-ja compose-package
74 # Sub-rule for XEmacs package.
76 @if test x$(PACKAGEDIR) = x; then \
77 package_dir=`$(EXAMINE_PACKAGEDIR)`; \
79 package_dir="$(PACKAGEDIR)"; \
81 echo "cd lisp && $(MAKE) EMACS=$(XEMACS)" \
82 "lispdir=$$package_dir""/lisp/$(GNUS_PRODUCT_NAME)" \
83 "install-without-compiling"; \
84 cd lisp && $(MAKE) EMACS="$(XEMACS)" \
85 lispdir="$$package_dir""/lisp/$(GNUS_PRODUCT_NAME)" \
86 install-without-compiling
89 @if test x$(PACKAGEDIR) = x; then \
90 package_dir=`$(EXAMINE_PACKAGEDIR)`; \
92 package_dir="$(PACKAGEDIR)"; \
94 echo "cd texi && $(MAKE) EMACS=$(XEMACS)" \
95 "infodir=$$package_dir""/info install-info"; \
96 cd texi && $(MAKE) EMACS="$(XEMACS)" \
97 infodir="$$package_dir""/info" install-info
99 install-package-info-ja:
100 @if test x$(PACKAGEDIR) = x; then \
101 package_dir=`$(EXAMINE_PACKAGEDIR)`; \
103 package_dir="$(PACKAGEDIR)"; \
105 echo "cd texi && $(MAKE) EMACS=$(XEMACS)" \
106 "infodir=$$package_dir""/info install-ja-info"; \
107 cd texi && $(MAKE) EMACS="$(XEMACS)" \
108 infodir="$$package_dir""/info" install-ja-info
110 install-package-manifest:
111 @if test x$(PACKAGEDIR) = x; then \
112 package_dir=`$(EXAMINE_PACKAGEDIR)`; \
114 package_dir="$(PACKAGEDIR)"; \
116 echo "cd lisp && $(MAKE) EMACS=$(XEMACS) PACKAGEDIR=$$package_dir" \
117 "install-package-manifest"; \
118 cd lisp && $(MAKE) EMACS="$(XEMACS)" PACKAGEDIR=$$package_dir \
119 install-package-manifest
121 remove-extra-files-in-package:
122 @if test x$(PACKAGEDIR) = x; then \
123 package_dir=`$(EXAMINE_PACKAGEDIR)`; \
125 package_dir="$(PACKAGEDIR)"; \
127 echo "cd lisp && $(MAKE) EMACS=$(XEMACS) PACKAGEDIR=$$package_dir" \
128 "remove-extra-files-in-package"; \
129 cd lisp && $(MAKE) EMACS="$(XEMACS)" PACKAGEDIR=$$package_dir \
130 remove-extra-files-in-package
133 cd lisp && $(MAKE) EMACS="$(XEMACS)" compose-package
137 cd lisp && $(MAKE) EMACS="$(XEMACS)" lispdir="$(lispdir)" clever
140 cd lisp && $(MAKE) EMACS="$(XEMACS)" lispdir="$(lispdir)" all
143 cd texi && $(MAKE) EMACS="$(XEMACS)" all-info
146 cd texi && $(MAKE) EMACS="$(XEMACS)" ja-info
148 # Rule for Lars and nobody else.
150 cd lisp && $(MAKE) EMACS="$(EMACS)" some
152 cd lisp && $(MAKE) EMACS="$(EMACS)" clever
155 cd texi && $(MAKE) EMACS="$(EMACS)" all
158 cd texi && $(MAKE) EMACS=$(EMACS) ja
161 rm -f */*.orig */*.rej *.orig *.rej
163 for i in lisp texi; do (cd $$i; $(MAKE) clean); done
166 cd lisp && rm -f *.elc auto-autoloads.el custom-load.el gnus-load.el
169 $(MAKE) EMACS="$(XEMACS)"
172 $(MAKE) EMACS="$(XEMACS)" some
176 for i in lisp texi etc; do (cd $$i; $(MAKE) distclean); done
177 rm -f config.log config.status config.cache Makefile
179 config.status: $(srcdir)/configure
180 $(SHELL) ./config.status --recheck
181 $(srcdir)/configure: $(srcdir)/configure.in
182 cd $(srcdir) && autoconf
183 Makefile: $(srcdir)/Makefile.in config.status
184 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
186 # Tell versions [3.59,3.63) of GNU make to not export all variables.
187 # Otherwise a system limit (for SysV at least) may be exceeded.