register the extensions for .SUFFIXES.
(&handle_texinfo): Don't register the suffixes.
(&get_object_extension): Don't register suffixes, let them be
discovered in depend2.am.
(&handle_emacs_lisp): Depend on your lisp.am.
* lisp.am: Include the rule &handle_emacs_lisp used to output.
+2001-04-09 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&rule_define): When you discover a suffix rules,
+ register the extensions for .SUFFIXES.
+ (&handle_texinfo): Don't register the suffixes.
+ (&get_object_extension): Don't register suffixes, let them be
+ discovered in depend2.am.
+ (&handle_emacs_lisp): Depend on your lisp.am.
+ * lisp.am: Include the rule &handle_emacs_lisp used to output.
+
2001-04-09 Akim Demaille <akim@epita.fr>
* subdirs.am: Don't define info related recursive targets.
all: all-recursive
.SUFFIXES:
-.SUFFIXES: .dvi .info .ps .texi .texinfo .txi
+.SUFFIXES: .dvi .info .ps .texi
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && \
('TEXICLEAN' => $texiclean));
push (@dist_targets, 'dist-info');
- push (@suffixes, '.texi', '.texinfo', '.txi', '.info', '.dvi', '.ps');
if (! defined $options{'no-installinfo'})
{
if (@elfiles)
{
- # Found some lisp.
- &define_configure_variable ('lispdir');
- &define_configure_variable ('EMACS');
- $output_rules .= (".el.elc:\n"
- . "\t\@echo 'WARNING: Warnings can be ignored. :-)'\n"
- . "\tif test \$(EMACS) != no; then \\\n"
- . "\t EMACS=\$(EMACS) \$(SHELL) \$(srcdir)/elisp-comp \$<; \\\n"
- . "\tfi\n");
- push (@suffixes, '.el', '.elc');
-
# Generate .elc files.
grep ($_ .= 'c', @elfiles);
&define_pretty_variable ('ELCFILES', '', @elfiles);
# Check the rule for being a suffix rule. If so, store in a hash.
- my $source_suffix;
- my $object_suffix;
- if (($source_suffix, $object_suffix) = ($1 =~ $SUFFIX_RULE_PATTERN))
+ if ((my ($source_suffix, $object_suffix)) = ($1 =~ $SUFFIX_RULE_PATTERN))
{
$suffix_rules{$source_suffix} = $object_suffix;
print "Sources ending in .$source_suffix become .$object_suffix\n"
if $verbose;
$source_suffix_pattern = "(" . join ('|', keys %suffix_rules) . ")";
+ # Set SUFFIXES from suffix_rules.
+ push @suffixes, ".$source_suffix", ".$object_suffix";
}
-
- # FIXME: make sure both suffixes are in SUFFIXES? Or set SUFFIXES from
- # suffix_rules?
}
################################################################
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-
mostlyclean-am: mostlyclean-compile
mostlyclean-compile:
## Don't remove 'core.*' because some distributions have eg "core.c".
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-
mostlyclean-am: mostlyclean-compile
mostlyclean-compile:
## Don't remove 'core.*' because some distributions have eg "core.c".
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
.PHONY: mostlyclean-libtool clean-libtool distclean-libtool
mostlyclean-am: mostlyclean-libtool
mostlyclean-libtool:
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+## ---------- ##
+## Building. ##
+## ---------- ##
+
+EMACS = @EMACS@
+lispdir = @lispdir@
+
+.el.elc:
+ @echo 'WARNING: Warnings can be ignored. :-)'
+ if test $(EMACS) != no; then \
+ EMACS=$(EMACS) $(SHELL) $(srcdir)/elisp-comp $<; \
+ fi
+
## ------------ ##
## Installing. ##
## ------------ ##
info-am: $(INFO_DEPS)
dvi-am: $(DVIS)
+
+## ------------ ##
+## Installing. ##
+## ------------ ##
+
## Look in both . and srcdir because the info pages might have been
## rebuilt in the build directory. Can't cd to srcdir; that might
## break a possible install-sh reference.
else : ; fi
-## ------------------------- ##
-## Uninstalling info pages. ##
-## ------------------------- ##
+## -------------- ##
+## Uninstalling. ##
+## -------------- ##
?SUBDIRS?RECURSIVE_TARGETS += uninstall-info-recursive
?SUBDIRS?.PHONY uninstall-info: uninstall-info-recursive
done
-## How to clean. The funny name is due to --cygnus influence; in
-## Cygnus mode, `clean-info' is a target that users can use.
+
+## ---------- ##
+## Cleaning. ##
+## ---------- ##
+
+## The funny name is due to --cygnus influence; in Cygnus mode,
+## `clean-info' is a target that users can use.
.PHONY: mostlyclean-aminfo
mostlyclean-am: mostlyclean-aminfo
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
.PHONY: mostlyclean-libtool clean-libtool distclean-libtool
mostlyclean-am: mostlyclean-libtool
mostlyclean-libtool:
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+## ---------- ##
+## Building. ##
+## ---------- ##
+
+EMACS = @EMACS@
+lispdir = @lispdir@
+
+.el.elc:
+ @echo 'WARNING: Warnings can be ignored. :-)'
+ if test $(EMACS) != no; then \
+ EMACS=$(EMACS) $(SHELL) $(srcdir)/elisp-comp $<; \
+ fi
+
## ------------ ##
## Installing. ##
## ------------ ##
info-am: $(INFO_DEPS)
dvi-am: $(DVIS)
+
+## ------------ ##
+## Installing. ##
+## ------------ ##
+
## Look in both . and srcdir because the info pages might have been
## rebuilt in the build directory. Can't cd to srcdir; that might
## break a possible install-sh reference.
else : ; fi
-## ------------------------- ##
-## Uninstalling info pages. ##
-## ------------------------- ##
+## -------------- ##
+## Uninstalling. ##
+## -------------- ##
?SUBDIRS?RECURSIVE_TARGETS += uninstall-info-recursive
?SUBDIRS?.PHONY uninstall-info: uninstall-info-recursive
done
-## How to clean. The funny name is due to --cygnus influence; in
-## Cygnus mode, `clean-info' is a target that users can use.
+
+## ---------- ##
+## Cleaning. ##
+## ---------- ##
+
+## The funny name is due to --cygnus influence; in Cygnus mode,
+## `clean-info' is a target that users can use.
.PHONY: mostlyclean-aminfo
mostlyclean-am: mostlyclean-aminfo