]> sourceware.org Git - automake.git/commitdiff
Many bug fixes
authorTom Tromey <tromey@redhat.com>
Sun, 10 Dec 1995 22:45:27 +0000 (22:45 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 10 Dec 1995 22:45:27 +0000 (22:45 +0000)
ChangeLog
Makefile.am
Makefile.in
TODO
automake.in
depend.am
lib/am/Makefile.am
lib/am/depend.am

index d6531f5d1259d46cb03829f9bf5dead8a1c41419..73c5bbeb69b5af7dd3355a383c683b1a032aae44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 Sun Dec 10 11:59:33 1995  Tom Tromey  <tromey@cambric.colorado.edu>
 
+       * depend.am (DEP_FILES): Bug fix.
+
+       * automake.in (do_one_clean_target): Typo.
+
+       * Makefile.am (check-local): Run syntax check under Perl 4.
+
+       * automake.in: Fixes for Perl 4, from Gord Matzigkeit.
+       (handle_source_transform): Loop variable is now $_.  From Gor
+
        * Makefile.am (check-local): Check for 'true' in source.
        * texinfos.am (install-info): Can't use "true" in any rule.
 
index aad64943a87adcd4972ce471f760d327ba90f5e8..f6ca533ec8e5ccba27531af6f28f52276ad585ae 100644 (file)
@@ -23,13 +23,19 @@ DIST_SUBDIRS = samples/cpio/*Makefile.am
 ETAGS_ARGS = automake.in --lang=none \
  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
 
-# The simplest form of checking.
+# Some simple checks:
+# * syntax check with perl4 and perl5.
+# * make sure the scripts don't use 'true'
+# These are only really guaranteed to work on my machine.
 check-local: automake
        @PERL@ -c -w automake
        if grep '^[^#].*true' *.am; then :; else \
          echo "can't use 'true' in GNU Makefile" 1>&2; \
          exit 1;                               \
        fi
+       if test -f /usr/local/bin/perl4.036; then \
+         /usr/local/bin/perl4.036 -c -w automake; \
+       else :; fi
 
 automake: automake.in
        CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
index a81f03f8fce78e3fef3155168cf37e6529f27e7c..761f529a940329c1326c5342ad37e1cd3984065f 100644 (file)
@@ -290,13 +290,19 @@ maintainer-clean: distclean maintainer-clean-binSCRIPTS maintainer-clean-vti mai
 # CONFIG_HEADER = config.h
 # Gross.
 # The following requires a fixed version of the Emacs 19.30 etags.
-# The simplest form of checking.
+# Some simple checks:
+# * syntax check with perl4 and perl5.
+# * make sure the scripts don't use 'true'
+# These are only really guaranteed to work on my machine.
 check-local: automake
        @PERL@ -c -w automake
        if grep '^[^#].*true' *.am; then :; else \
          echo "can't use 'true' in GNU Makefile" 1>&2; \
          exit 1;                               \
        fi
+       if test -f /usr/local/bin/perl4.036; then \
+         /usr/local/bin/perl4.036 -c -w automake; \
+       else :; fi
 
 automake: automake.in
        CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
diff --git a/TODO b/TODO
index 3a5dae2ecfd367915063e62513de18cc4be51ee8..2a0b6373d546d5a6dd817a97301f9d466dcbe1ea 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,8 @@
 Top priorities:
 * Fix up how 'clean' interacts with new naming scheme.
 
+uninstall and pkg-dirs should rm -rf the dir.
+
 Clean up the output:
 * Order rules sensibly
 * Ensure every line has a purpose.  Omit unused stuff
index 22055fe121f6b7ecfdfac5c68983299781621f42..996c28e6ef26a868ff39525d40fefd2dc84804b8 100755 (executable)
@@ -200,7 +200,7 @@ sub generate_makefile
     $relative_dir = &dirname ($makefile);
     # FIXME with new 'dist' target, don't need Makefile.in.  Probably
     # should remove it here.
-    push_dist_common ('Makefile.in', 'Makefile.am');
+    &push_dist_common ('Makefile.in', 'Makefile.am');
     push (@sources, '$(SOURCES)') if (defined $contents{'SOURCES'});
     push (@objects, '$(OBJECTS)') if (defined $contents{'OBJECTS'});
 
@@ -321,13 +321,13 @@ sub handle_source_transform
            # Ugh: Perl syntax vs Emacs.
            local ($krc1, $krc2) = ('\.\$\{kr\}c', '\.\$\(kr\)c');
            local (@result) = ();
-           foreach $one_source (@files)
+           foreach (@files)
            {
                if (/^(.*)\.[yl]$/)
                {
                    # Automatically include generated .c file in
                    # distribution.
-                   push_dist_common ($1 . '.c');
+                   &push_dist_common ($1 . '.c');
                }
 
                # Transform source files into .o files.
@@ -483,7 +483,7 @@ sub handle_texinfo
     {
        # Got a hit.
        push (@texis, 'version.texi');
-       push_dist_common ('version.texi', 'stamp-vti');
+       &push_dist_common ('version.texi', 'stamp-vti');
        push (@clean, 'vti');
 
        local ($tfile);
@@ -498,7 +498,7 @@ sub handle_texinfo
     if (defined $contents{$infobase . "_TEXINFOS"})
     {
        push (@texis, "\$" . $infobase . '_TEXINFOS');
-       push_dist_common ("\$" . $infobase . '_TEXINFOS');
+       &push_dist_common ("\$" . $infobase . '_TEXINFOS');
     }
 
     if ($#texis >= 0)
@@ -640,7 +640,7 @@ sub handle_dist
     {
        if (-f ($relative_dir . "/" . $cfile))
        {
-           push_dist_common ($cfile);
+           &push_dist_common ($cfile);
        }
     }
 
@@ -745,7 +745,7 @@ sub handle_configure
        if (-f 'aclocal.m4')
        {
            $output_vars .= "ACLOCAL = aclocal.m4\n";
-           push_dist_common ('aclocal.m4');
+           &push_dist_common ('aclocal.m4');
        }
        $output_rules .= &file_contents ('remake');
 
@@ -761,20 +761,20 @@ sub handle_configure
        if (-f 'acconfig.h')
        {
            $output_vars .= "ACCONFIG = acconfig.h\n";
-           push_dist_common ('acconfig.h');
+           &push_dist_common ('acconfig.h');
        }
        if (-f 'config.h.top')
        {
            $output_vars .= "CONFIG_TOP = config.h.top\n";
-           push_dist_common ('config.h.top');
+           &push_dist_common ('config.h.top');
        }
        if (-f 'config.h.bot')
        {
            $output_vars .= "CONFIG_BOT = config.h.bot\n";
-           push_dist_common ('config.h.bot');
+           &push_dist_common ('config.h.bot');
        }
 
-       push_dist_common ('stamp-h.in', $contents{'CONFIG_HEADER'} . '.in');
+       &push_dist_common ('stamp-h.in', $contents{'CONFIG_HEADER'} . '.in');
 
        $output_rules .= &file_contents ('remake-hdr');
     }
@@ -1001,7 +1001,7 @@ sub do_one_clean_target
             . "tools to rebuild.\"\n");
     }
     elsif ($name . $target eq 'distclean'
-          || $name . $tar eq 'maintainer-clean')
+          || $name . $target eq 'maintainer-clean')
     {
        $output_rules .= "\trm -f config.status\n";
     }
@@ -1013,12 +1013,12 @@ sub do_one_clean_target
 # Do any extra checking for GNU standards.
 sub check_gnu_standards
 {
-    require_file ($GNU, 'ChangeLog');
+    &require_file ($GNU, 'ChangeLog');
 
     if ($relative_dir eq '.')
     {
        # In top level (or only) directory.
-       require_file ($GNU, 'INSTALL', 'NEWS', 'README');
+       &require_file ($GNU, 'INSTALL', 'NEWS', 'README');
     }
 }
 
@@ -1137,20 +1137,20 @@ sub initialize_global_constants
     # corresponding directory should be installed during
     # 'install-exec' phase.
     %exec_dir_p =
-       ('bin' => 1,
-        'sbin' => 1,
-        'libexec' => 1,
-        'data' => 0,
-        'sysconf' => 1,
-        'localstate' => 1,
-        'lib' => 1,
-        'info' => 0,
-        'man' => 0,
-        'include' => 0,
-        'oldinclude' => 0,
-        'pkgdata' => 0,
-        'pkglib' => 1,
-        'pkginclude' => 0
+       ('bin', 1,
+        'sbin', 1,
+        'libexec', 1,
+        'data', 0,
+        'sysconf', 1,
+        'localstate', 1,
+        'lib', 1,
+        'info', 0,
+        'man', 0,
+        'include', 0,
+        'oldinclude', 0,
+        'pkgdata', 0,
+        'pkglib', 1,
+        'pkginclude', 0
         );
 
     # Helper text for dealing with man pages.
@@ -1409,7 +1409,7 @@ sub require_file
 
     if (-f $fullfile)
     {
-       push_dist_common ($file);
+       &push_dist_common ($file);
     }
     elsif ($strictness >= $mystrict)
     {
index c1fdc904e7bb88cd1b568a0bc3b3135fcaf2b8a7..2b89c13bb1bcdad1d925815571be7b331999ad93 100644 (file)
--- a/depend.am
+++ b/depend.am
@@ -5,7 +5,7 @@
 MKDEP = gcc -MM
 
 ## Use ${kr} in case we are doing auto-deANSIfication.
-DEP_FILES = $(patsubst %.{kr}o,.deps/%.P,$(OBJECTS))
+DEP_FILES = $(patsubst %.${kr}o,.deps/%.P,$(OBJECTS))
 
 ## We use ".P" as the name of our placeholder because it can't be
 ## duplicated by any C source file.  (Well, there could be ".c", but
index aad64943a87adcd4972ce471f760d327ba90f5e8..f6ca533ec8e5ccba27531af6f28f52276ad585ae 100644 (file)
@@ -23,13 +23,19 @@ DIST_SUBDIRS = samples/cpio/*Makefile.am
 ETAGS_ARGS = automake.in --lang=none \
  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
 
-# The simplest form of checking.
+# Some simple checks:
+# * syntax check with perl4 and perl5.
+# * make sure the scripts don't use 'true'
+# These are only really guaranteed to work on my machine.
 check-local: automake
        @PERL@ -c -w automake
        if grep '^[^#].*true' *.am; then :; else \
          echo "can't use 'true' in GNU Makefile" 1>&2; \
          exit 1;                               \
        fi
+       if test -f /usr/local/bin/perl4.036; then \
+         /usr/local/bin/perl4.036 -c -w automake; \
+       else :; fi
 
 automake: automake.in
        CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
index c1fdc904e7bb88cd1b568a0bc3b3135fcaf2b8a7..2b89c13bb1bcdad1d925815571be7b331999ad93 100644 (file)
@@ -5,7 +5,7 @@
 MKDEP = gcc -MM
 
 ## Use ${kr} in case we are doing auto-deANSIfication.
-DEP_FILES = $(patsubst %.{kr}o,.deps/%.P,$(OBJECTS))
+DEP_FILES = $(patsubst %.${kr}o,.deps/%.P,$(OBJECTS))
 
 ## We use ".P" as the name of our placeholder because it can't be
 ## duplicated by any C source file.  (Well, there could be ".c", but
This page took 0.043088 seconds and 5 git commands to generate.