Hi,
I'm looking at building auctex within the XEmacs packages.
I have come up with a solution which unfortunately requires
modification to XEmacs.rules. I don't like that idea but I'm stuck. A
suggestion for how to solve this locally in the auctex package is
welcome.
(Lengthy problem description follows.)
One of the problems is to create the same auto-autoloads.el as the
auctex standalone XEmacs package build procedure, e.g. make
xemacs-package using the source distribution, does. The reason for
this is that the auctex build procedure appends info after generating
the auto-autoloads.
For simulating this in the package tree I have added this rule to the
Makefile. (Slightly simplified to show the point.)
----------------------------------------------------------------------
[...]
EXTRA_AUTOLOADS_DEPENDENCIES = tex-site.el preview/auto.el
include ../../XEmacs.rules
$(AUTOLOAD_PATH)/auto-autoloads.el:: $(EXTRA_AUTOLOADS_DEPENDENCIES)
cat tex-site.el >> $(AUTOLOAD_PATH)/auto-autoloads.el
cat preview/auto.el >> $(AUTOLOAD_PATH)/auto-autoloads.el
[...]
----------------------------------------------------------------------
The EXTRA_AUTOLOADS_DEPENDENCIES is something I introduced in
XEmacs.rules in order for the regeneration of auto-autoloads.el to
kick in if the tex-site.el or preview/auto.el are changed. Otherwise
only the rule above will fire and the files will be appended
again. This is a similar problem to the handling of _pkg.el I guess.
Here is the patch to XEmacs.rules.
--- working directory: "/src/xemacs/packages/"
% cvs diff -u XEmacs.rules
Index: XEmacs.rules
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/XEmacs.rules,v
retrieving revision 1.59
diff -u -r1.59 XEmacs.rules
--- XEmacs.rules 24 May 2007 20:22:29 -0000 1.59
+++ XEmacs.rules 7 Oct 2007 13:45:45 -0000
@@ -462,11 +462,11 @@
# rebuilding), then our suppress forms may have changed. Just rebuilding
# the autoload file normally isn't enough as the old suppress forms will
# still sit there, so nuke it first.
-$(AUTOLOAD_PATH)/auto-autoloads.el:: $(AUTOLOAD_PATH)/_pkg.el
+$(AUTOLOAD_PATH)/auto-autoloads.el:: $(AUTOLOAD_PATH)/_pkg.el
$(EXTRA_AUTOLOADS_DEPENDENCIES)
rm -f $(AUTOLOAD_PATH)/auto-autoloads.el
ifeq ($(XEMACS_21_5),t)
-$(AUTOLOAD_PATH)/auto-autoloads.el:: $(GENERATED_ELC_DEPENDENCIES)
+$(AUTOLOAD_PATH)/auto-autoloads.el:: $(GENERATED_ELC_DEPENDENCIES)
$(EXTRA_AUTOLOADS_DEPENDENCIES)
$(XEMACS_BATCH_CLEAN) $(LOAD_AUTOLOADS) \
-l autoload -f batch-update-directory-autoloads \
$(PACKAGE) $(AUTOLOAD_PATH)
@@ -484,7 +484,7 @@
AUTOLOAD_FILE = (setq generated-autoload-file \
\"$(AUTOLOAD_PATH)/auto-autoloads.el\")
-$(AUTOLOAD_PATH)/auto-autoloads.el:: $(GENERATED_ELC_DEPENDENCIES)
+$(AUTOLOAD_PATH)/auto-autoloads.el:: $(GENERATED_ELC_DEPENDENCIES)
$(EXTRA_AUTOLOADS_DEPENDENCIES)
$(XEMACS_BATCH_CLEAN) $(LOAD_AUTOLOADS) \
-eval "$(AUTOLOAD_PACKAGE_NAME)" \
-eval "$(AUTOLOAD_FILE)" \
Exit 1 15:47:31
Yours
--
%% Mats
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta