fix little bugs
authorDavid J. MacKenzie <djm@gnu.org>
Tue, 20 Sep 1994 18:05:10 +0000 (18:05 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Tue, 20 Sep 1994 18:05:10 +0000 (18:05 +0000)
README
automake.in
compile.am
header-vars.am
lib/am/compile.am
lib/am/header-vars.am

diff --git a/README b/README
index 4c92c96..d1a1afa 100644 (file)
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ by the 4.4BSD make and include files, but aims to be portable and to
 conform to the GNU standards for Makefile variables and targets.
 
 automake is a shell script.  The input files are called Makefile.am.
-The output files are called Makefile.in; they are suitable for use
+The output files are called Makefile.in; they are intended for use
 with Autoconf.
 
 Variable assignment lines in Makefile.am pull in defaults from various
@@ -15,5 +15,13 @@ and the examples provided for GNU m4 1.3 and fileutils 3.9 (along with
 patches you need to apply to those packages) and time 1.6.
 
 AutoMake is just a prototype at this point -- expect omissions and bugs.
+It uses only the programs that the GNU coding standards allow in
+configure scripts, because I wrote it keeping in mind the possibility
+of it becoming an Autoconf macro, so it would run at configure-time.
+That would slow configuration down a bit, but allow users to modify
+the Makefile.am without needing to fetch the AutoMake package.  And,
+the Makefile.in files wouldn't need to be distributed.  But all of
+AutoMake would.  So I might reimplement AutoMake in Perl, m4, or some
+other more appropriate language.
 
 - David MacKenzie <djm@gnu.ai.mit.edu>
index d5e1846..123e3e0 100755 (executable)
@@ -177,11 +177,13 @@ ${am_file}_OBJECTS = ${am_file}.\${kr}o" >&4
 
   cat $AM_DIR/footer.am >&5
 
-  sed '/^ *\([a-zA-Z_.][a-zA-Z0-9_. ]*\):.*/,$d' ${am_makefile}.am >> ${am_makefile}.vars
-  sed -n '/^ *\([a-zA-Z_.][a-zA-Z0-9_. ]*\):.*/,$p' ${am_makefile}.am >> ${am_makefile}.rules
+  sed '/^ *\([a-zA-Z_.][a-zA-Z0-9_. ]*\):.*/,$d' ${am_makefile}.am >&4
+  sed -n '/^ *\([a-zA-Z_.][a-zA-Z0-9_. ]*\):.*/,$p' ${am_makefile}.am >&5
   cat ${am_makefile}.vars ${am_makefile}.rules > ${am_makefile}.in
   rm -f ${am_makefile}.vars ${am_makefile}.rules
 
 done
 
+rm -f $am_rmnl $am_ass
+
 exit $am_status
index aeb40bf..f1f7c27 100644 (file)
@@ -2,14 +2,20 @@
 .c.o:
        $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
 
-.krc.kro:
-       cp $< krtmp$$.c && \
-       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
-       mv krtmp$$.o $@
-
 .c.krc:
        $(ANSI2KNR) $< > $@
 
 .h.krh:
        $(ANSI2KNR) $< > $@
 
+.krc.kro:
+       cp $< krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
+
+.c.kro:
+       $(ANSI2KNR) $< > $*.krc
+       cp $*.krc krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
+
index dec5f44..97e68a5 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile generated automatically by automake from Makefile.am.
+# Makefile.in generated automatically by automake from Makefile.am.
 # Copyright (C) 1994 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
index aeb40bf..f1f7c27 100644 (file)
@@ -2,14 +2,20 @@
 .c.o:
        $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
 
-.krc.kro:
-       cp $< krtmp$$.c && \
-       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
-       mv krtmp$$.o $@
-
 .c.krc:
        $(ANSI2KNR) $< > $@
 
 .h.krh:
        $(ANSI2KNR) $< > $@
 
+.krc.kro:
+       cp $< krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
+
+.c.kro:
+       $(ANSI2KNR) $< > $*.krc
+       cp $*.krc krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
+
index dec5f44..97e68a5 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile generated automatically by automake from Makefile.am.
+# Makefile.in generated automatically by automake from Makefile.am.
 # Copyright (C) 1994 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify