From e4ae9e2c749c00ee2c1ae684a6fe9b3c69fea840 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Apr 1997 05:20:39 +0000 Subject: [PATCH] doc update --- automake.texi | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/automake.texi b/automake.texi index f0b91c6f..f1f1e813 100644 --- a/automake.texi +++ b/automake.texi @@ -567,11 +567,11 @@ bin_PROGRAMS = etags ctags ctags_SOURCES = ctags_LDADD = ctags.o -etags.o: - $(COMPILE) -DETAGS_REGEXPS etags.c +etags.o: etags.c + $(COMPILE) -DETAGS_REGEXPS -c etags.c -ctags.o: - $(COMPILE) -DCTAGS -o ctags.o etags.c +ctags.o: etags.c + $(COMPILE) -DCTAGS -o ctags.o -c etags.c @end example Note that @code{ctags_SOURCES} is defined to be empty---that way no @@ -581,8 +581,28 @@ generate @code{etags} from @file{etags.o}. @code{ctags_LDADD} is used to get @file{ctags.o} into the link line. @code{ctags_DEPENDENCIES} is generated by Automake. -Of course, these explicit rules do not work if the de-ANSI-fication -feature is used; supporting that would require more work. +The above rules won't work if your compiler doesn't accept both +@samp{-c} and @samp{-o}. The simplest fix for this is to introduce a +bogus dependency (to avoid problems with a parallel @code{make}): + +@example +etags.o: etags.c ctags.o + $(COMPILE) -DETAGS_REGEXPS -c etags.c + +ctags.o: etags.c + $(COMPILE) -DCTAGS -c etags.c && mv etags.o ctags.o +@end example + +Also, these explicit rules do not work if the de-ANSI-fication feature +is used; supporting that requires a little more work: + +@example +etags._o: etags._c ctags.o + $(COMPILE) -DETAGS_REGEXPS -c etags.c + +ctags._o: etags._c + $(COMPILE) -DCTAGS -c etags.c && mv etags._o ctags.o +@end example @node Invoking Automake -- 2.43.5