]> sourceware.org Git - automake.git/commitdiff
If OBJEXT and EXEEXT are not set, provide a default value, and use
authorAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 15:02:58 +0000 (15:02 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 15:02:58 +0000 (15:02 +0000)
them unconditionally.
* automake.in (&generate_makefile): Provide default values for
EXEEXT and OBJEXT.
(&get_object_extension, &finish_languages)
(&handle_single_transform_list, &handle_programs, &add_depend2)
(&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
them, they are defined.
* compile.am, depend2.am, program.am, progs.am: Likewise.
* remake-hdr.am: Fix a typo.
* tests/cxxo.test, tests/fo.test, tests/implicit.test,
* tests/interp.test, tests/subobj.test, tests/subobj2.test,
* tests/suffix2.test: Adjust.

17 files changed:
ChangeLog
automake.in
compile.am
depend2.am
lib/am/compile.am
lib/am/depend2.am
lib/am/program.am
lib/am/progs.am
program.am
progs.am
tests/cxxo.test
tests/fo.test
tests/implicit.test
tests/interp.test
tests/subobj.test
tests/subobj2.test
tests/suffix2.test

index 2b6a0d49b2aef67fd1da0f9e369fbb171a652baa..fa9d07e6a1fd2426e3afc14dbd0e712b71b884a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2001-03-05  Akim Demaille  <akim@epita.fr>
+
+       If OBJEXT and EXEEXT are not set, provide a default value, and use
+       them unconditionally.
+
+       * automake.in (&generate_makefile): Provide default values for
+       EXEEXT and OBJEXT.
+       (&get_object_extension, &finish_languages)
+       (&handle_single_transform_list, &handle_programs, &add_depend2)
+       (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
+       them, they are defined.
+       * compile.am, depend2.am, program.am, progs.am: Likewise.
+       * remake-hdr.am: Fix a typo.
+       * tests/cxxo.test, tests/fo.test, tests/implicit.test,
+       * tests/interp.test, tests/subobj.test, tests/subobj2.test,
+       * tests/suffix2.test: Adjust.
+
 2001-03-05  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&file_contents): Map MAINTAINER-MODE to
index 2cd2d0c2062c4784e3b1d9463702c69fb0aa410c..dd8f454d802c36f7c77d68021e10ca1d6b00efe4 100755 (executable)
@@ -1118,6 +1118,14 @@ sub generate_makefile
        return;
     }
 
+    # If OBJEXT/EXEEXT were not set in configure.in, do it, it
+    # simplifies our task, and anyway starting with Autoconf 2.50, it
+    # will always be defined, and this code will be dead.
+    $output_vars .= "EXEEXT =\n"
+      unless $seen_exeext;
+    $output_vars .= "OBJEXT = o\n"
+      unless $seen_objext;
+
     # Must do this after reading .am file.  See read_main_am_file to
     # understand weird tricks we play there with variables.
     &define_variable ('subdir', $relative_dir);
@@ -1312,8 +1320,7 @@ sub get_object_extension
     my ($out) = @_;
 
     # Maybe require libtool library object files.
-    my $extension = '.o';
-    $extension = '.$(OBJEXT)' if $seen_objext;
+    my $extension = '.$(OBJEXT)';
     $extension = '.lo' if ($out =~ /\.la$/);
 
     if (! $included_generic_compile)
@@ -1337,8 +1344,7 @@ sub get_object_extension
                          &transform ('DEFAULT_INCLUDES' => $default_include));
 
        $output_rules .=
-         &file_contents ('compile',
-                         &transform ('OBJEXT' => $seen_objext));
+         &file_contents ('compile');
 
        # If using X, include some extra variable definitions.  NOTE
        # we don't want to force these into CFLAGS or anything,
@@ -1352,8 +1358,7 @@ sub get_object_extension
            }
        }
 
-       push (@suffixes, '.c', '.o');
-       push (@suffixes, '.obj') if $seen_objext;
+       push (@suffixes, '.c', '.o', '.obj');
 
        $included_generic_compile = 1;
     }
@@ -1395,26 +1400,25 @@ sub get_object_extension
            # Generate rules to build ansi2knr.  If it is in some
            # other directory, then generate dependencies but have the
            # rule just run elsewhere.
-           my $objext = $seen_objext ? ".\$(OBJEXT)" : ".o";
            $output_rules .= ($options{'ansi2knr'} . ': '
-                             . $options{'ansi2knr'} . $objext . "\n");
+                             . $options{'ansi2knr'} . '.$(OBJEXT)' . "\n");
            if ($options{'ansi2knr'} eq 'ansi2knr')
            {
-               $output_rules .= ("\t\$(LINK) ansi2knr" . $objext
+               $output_rules .= ("\t\$(LINK) ansi2knr.\$(OBJEXT)"
                                  . " \$(LIBS)\n"
-                                 . "ansi2knr" . $objext
+                                 . 'ansi2knr.$(OBJEXT)'
                                  . ": \$(CONFIG_HEADER)\n\n");
            }
            else
            {
                $output_rules .= ("\tcd " . dirname ($options{'ansi2knr'})
-                                 . " && \$(MAKE) \$(AM_MAKEFLAGS) "
+                                 . ' && $(MAKE) $(AM_MAKEFLAGS) '
                                  . "ansi2knr\n\n");
                # This is required for non-GNU makes.
-               $output_rules .= ($options{'ansi2knr'} . $objext . ":\n");
+               $output_rules .= ($options{'ansi2knr'} . '.$(OBJEXT)' . ":\n");
                $output_rules .= ("\tcd " . dirname ($options{'ansi2knr'})
-                                 . " && \$(MAKE) \$(AM_MAKEFLAGS)"
-                                 . " ansi2knr" . $objext . "\n\n");
+                                 . ' && $(MAKE) $(AM_MAKEFLAGS)'
+                                 . ' ansi2knr.$(OBJEXT)' . "\n\n");
            }
 
            # Make sure ansi2knr can be found: if no path specified,
@@ -1490,8 +1494,7 @@ sub finish_languages
            # FIXME: Using cygpath should be somehow conditional.
            $output_rules .= (".$ext.obj:\n"
                              . $full
-                             . " \`cygpath -w \$<\`\n")
-               if $seen_objext;
+                             . " \`cygpath -w \$<\`\n");
            $output_rules .= (".$ext.lo:\n"
                              . "\t\$(LT"
                              . $language_map{$lang . '-compiler-name'}
@@ -1908,7 +1911,7 @@ sub handle_single_transform_list
         {
             my $depfile = $object;
             $depfile =~ s/\.([^.]*)$/.P$1/;
-            $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext;
+            $depfile =~ s/\$\(OBJEXT\)$/o/;
             $dep_files{'$(DEPDIR)/' . $depfile} = 1;
         }
     }
@@ -2299,15 +2302,8 @@ sub handle_programs
            $xlink = $linker ? $linker : 'LINK';
        }
 
-       my $exeext = '';
-       if ($seen_exeext && $one_file !~ /\./)
-       {
-           $exeext = '$(EXEEXT)';
-       }
-
        $output_rules .= &file_contents ('program',
-                                        &transform ('EXEEXT'   => $exeext,
-                                                    'PROGRAM'  => $one_file,
+                                        &transform ('PROGRAM'  => $one_file,
                                                     'XPROGRAM' => $xname,
                                                     'XLINK'    => $xlink));
     }
@@ -3224,7 +3220,6 @@ sub add_depend2
     # First include code for ordinary objects.
     my $xform = &transform ('PFX'  => $pfx,
                            'FPFX' => $fpfx,
-                           'OBJEXT'  => $seen_objext,
                            'LIBTOOL' => $seen_libtool,
                            'AMDEP'   => $use_dependencies);
 
@@ -4897,11 +4892,6 @@ sub check_cygnus
     {
        &am_conf_error ("\`AM_MAINTAINER_MODE' required when --cygnus specified");
     }
-
-    if (! $seen_exeext)
-    {
-       &am_conf_error ("\`AC_EXEEXT' required when --cygnus specified");
-    }
 }
 
 # Do any extra checking for GNU standards.
@@ -5157,9 +5147,9 @@ sub lang_c_finish
                              . '; else echo ' . $base . '.c; fi` '
                              . "| sed 's/^# \\([0-9]\\)/#line \\1/' "
                              . '| $(ANSI2KNR) > ' . $base . "_.c\n");
-           push (@objects, $base . '_'
-                 . ($seen_objext ? '.$(OBJEXT)' : '.o'));
-           push (@objects, $base . '_.lo') if $seen_libtool;
+           push (@objects, $base . '_.$(OBJEXT)');
+           push (@objects, $base . '_.lo')
+             if $seen_libtool;
        }
 
        # Make all _.o (and _.lo) files depend on ansi2knr.
@@ -7118,7 +7108,7 @@ sub am_install_var
 
            # A blatant hack: we rewrite each _PROGRAMS primary to
            # include EXEEXT when in Cygwin32 mode.
-           if ($seen_exeext && $primary eq 'PROGRAMS')
+           if ($primary eq 'PROGRAMS')
            {
                my @conds = &variable_conditions ($one_name);
 
index e9280f00759f4be5bc61994e3dc694ab2249b83a..75f7c0ee9d52b08b1e24abc90ec1112b709c556d 100644 (file)
@@ -20,8 +20,7 @@ mostlyclean-am: mostlyclean-compile
 mostlyclean-compile:
 ## Don't remove 'core.*' because some distributions have eg "core.c".
 ## 4.4BSD systems use `PROG.core'.
-       -rm -f *.o core *.core
-?OBJEXT?       -rm -f *.$(OBJEXT)
+       -rm -f *.$(OBJEXT) core *.core
 
 distclean-am: distclean-compile
 distclean-compile:
index b7158ba49417a6e583a957e407af4e33cfc7bab9..e61e28f3dd809eef4f689eb63f22a66a13b17f59 100644 (file)
 ?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
        %COMPILE% -c -o %OBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
 
-?GENERIC??LIBTOOL?%EXT%.lo:
-?!GENERIC??LIBTOOL?%LTOBJ%: %SOURCE%
+?LIBTOOL??GENERIC?%EXT%.lo:
+?LIBTOOL??!GENERIC?%LTOBJ%: %SOURCE%
 ?LIBTOOL??AMDEP?@AMDEP@        source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
 ?LIBTOOL??AMDEP?@AMDEP@        depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
 ?LIBTOOL??AMDEP?@AMDEP@        $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
 ?LIBTOOL?      %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
 
-?GENERIC??OBJEXT?%EXT%.obj:
-?!GENERIC??OBJEXT?%OBJOBJ%: %SOURCE%
-?OBJEXT??AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
-?OBJEXT??AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?OBJEXT??AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
-?OBJEXT?       %COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
+?GENERIC?%EXT%.obj:
+?!GENERIC?%OBJOBJ%: %SOURCE%
+?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
+?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+       %COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
index e9280f00759f4be5bc61994e3dc694ab2249b83a..75f7c0ee9d52b08b1e24abc90ec1112b709c556d 100644 (file)
@@ -20,8 +20,7 @@ mostlyclean-am: mostlyclean-compile
 mostlyclean-compile:
 ## Don't remove 'core.*' because some distributions have eg "core.c".
 ## 4.4BSD systems use `PROG.core'.
-       -rm -f *.o core *.core
-?OBJEXT?       -rm -f *.$(OBJEXT)
+       -rm -f *.$(OBJEXT) core *.core
 
 distclean-am: distclean-compile
 distclean-compile:
index b7158ba49417a6e583a957e407af4e33cfc7bab9..e61e28f3dd809eef4f689eb63f22a66a13b17f59 100644 (file)
 ?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
        %COMPILE% -c -o %OBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
 
-?GENERIC??LIBTOOL?%EXT%.lo:
-?!GENERIC??LIBTOOL?%LTOBJ%: %SOURCE%
+?LIBTOOL??GENERIC?%EXT%.lo:
+?LIBTOOL??!GENERIC?%LTOBJ%: %SOURCE%
 ?LIBTOOL??AMDEP?@AMDEP@        source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
 ?LIBTOOL??AMDEP?@AMDEP@        depfile='$(DEPDIR)/%BASE%.Plo' tmpdepfile='$(DEPDIR)/%BASE%.TPlo' @AMDEPBACKSLASH@
 ?LIBTOOL??AMDEP?@AMDEP@        $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
 ?LIBTOOL?      %LTCOMPILE% -c -o %LTOBJ% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE%
 
-?GENERIC??OBJEXT?%EXT%.obj:
-?!GENERIC??OBJEXT?%OBJOBJ%: %SOURCE%
-?OBJEXT??AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
-?OBJEXT??AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
-?OBJEXT??AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
-?OBJEXT?       %COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
+?GENERIC?%EXT%.obj:
+?!GENERIC?%OBJOBJ%: %SOURCE%
+?AMDEP?@AMDEP@ source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
+?AMDEP?@AMDEP@ depfile='$(DEPDIR)/%BASE%.Po' tmpdepfile='$(DEPDIR)/%BASE%.TPo' @AMDEPBACKSLASH@
+?AMDEP?@AMDEP@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
+       %COMPILE% -c -o %OBJOBJ% `cygpath -w %SOURCE%`
index 7c47cf19007d19171b215d055b9ec898c0affbb3..2b995bdf93e6f759dc243004d6578da527b86ae9 100644 (file)
 ## along with this program; if not, write to the Free Software
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
-%PROGRAM%%EXEEXT%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
+%PROGRAM%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
 ## Remove program before linking.  Otherwise the link will fail if the
 ## program is running somewhere.  FIXME: this could be a loss if
 ## you're using an incremental linker.  Maybe we should think twice?
 ## Or maybe not... sadly, incremental linkers are rarer than losing
 ## systems.
-       @rm -f %PROGRAM%%EXEEXT%
+       @rm -f %PROGRAM%
        $(%XLINK%) $(%XPROGRAM%_LDFLAGS) $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_LDADD) $(LIBS)
index d8995c767094704b6e3a1fc4689d39c5bac44201..1fefdacca249cc99f6b55aad1bdfabd7f034ce05 100644 (file)
@@ -1,5 +1,6 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
+##  Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
+
+## ------------ ##
+## Installing.  ##
+## ------------ ##
+
 _am_installdirs += $(DESTDIR)$(%NDIR%dir)
 ?EXEC?.PHONY install-exec-am: install-%DIR%PROGRAMS
 ?!EXEC?.PHONY install-data-am: install-%DIR%PROGRAMS
@@ -29,7 +35,7 @@ install-%DIR%PROGRAMS: $(%DIR%_PROGRAMS)
 ## Note that we explicitly set the libtool mode.  This avoids any
 ## lossage if the install program doesn't have a name that libtool
 ## expects.
-           f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
+           f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
 ?LIBTOOL?          echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
 ?LIBTOOL?          $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f; \
 ?!LIBTOOL?         echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
@@ -37,11 +43,16 @@ install-%DIR%PROGRAMS: $(%DIR%_PROGRAMS)
          else :; fi; \
        done
 
+
+## -------------- ##
+## uninstalling.  ##
+## -------------- ##
+
 .PHONY uninstall-am: uninstall-%DIR%PROGRAMS
 uninstall-%DIR%PROGRAMS:
        @$(NORMAL_UNINSTALL)
        @list='$(%DIR%_PROGRAMS)'; for p in $$list; do \
-         f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
+         f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
          echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f"; \
          rm -f $(DESTDIR)$(%NDIR%dir)/$$f; \
        done
index 7c47cf19007d19171b215d055b9ec898c0affbb3..2b995bdf93e6f759dc243004d6578da527b86ae9 100644 (file)
 ## along with this program; if not, write to the Free Software
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
-%PROGRAM%%EXEEXT%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
+%PROGRAM%: $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_DEPENDENCIES)
 ## Remove program before linking.  Otherwise the link will fail if the
 ## program is running somewhere.  FIXME: this could be a loss if
 ## you're using an incremental linker.  Maybe we should think twice?
 ## Or maybe not... sadly, incremental linkers are rarer than losing
 ## systems.
-       @rm -f %PROGRAM%%EXEEXT%
+       @rm -f %PROGRAM%
        $(%XLINK%) $(%XPROGRAM%_LDFLAGS) $(%XPROGRAM%_OBJECTS) $(%XPROGRAM%_LDADD) $(LIBS)
index d8995c767094704b6e3a1fc4689d39c5bac44201..1fefdacca249cc99f6b55aad1bdfabd7f034ce05 100644 (file)
--- a/progs.am
+++ b/progs.am
@@ -1,5 +1,6 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
+##  Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
+
+## ------------ ##
+## Installing.  ##
+## ------------ ##
+
 _am_installdirs += $(DESTDIR)$(%NDIR%dir)
 ?EXEC?.PHONY install-exec-am: install-%DIR%PROGRAMS
 ?!EXEC?.PHONY install-data-am: install-%DIR%PROGRAMS
@@ -29,7 +35,7 @@ install-%DIR%PROGRAMS: $(%DIR%_PROGRAMS)
 ## Note that we explicitly set the libtool mode.  This avoids any
 ## lossage if the install program doesn't have a name that libtool
 ## expects.
-           f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
+           f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
 ?LIBTOOL?          echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
 ?LIBTOOL?          $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f; \
 ?!LIBTOOL?         echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
@@ -37,11 +43,16 @@ install-%DIR%PROGRAMS: $(%DIR%_PROGRAMS)
          else :; fi; \
        done
 
+
+## -------------- ##
+## uninstalling.  ##
+## -------------- ##
+
 .PHONY uninstall-am: uninstall-%DIR%PROGRAMS
 uninstall-%DIR%PROGRAMS:
        @$(NORMAL_UNINSTALL)
        @list='$(%DIR%_PROGRAMS)'; for p in $$list; do \
-         f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
+         f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
          echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f"; \
          rm -f $(DESTDIR)$(%NDIR%dir)/$$f; \
        done
index 32beec86983b14f8467504892978a412b9f4b67c..1c86b8cc4968b653d022ff2b3f1f2aa47b3e928d 100755 (executable)
@@ -16,4 +16,4 @@ END
 
 $AUTOMAKE || exit 1
 
-fgrep doe.o Makefile.in
+fgrep 'doe.$(OBJEXT)' Makefile.in
index 8571b2d81608d44f14d484f1504586b45bc742a4..2b4b425ff39406bb93cee71c23f1a21d343f17de 100755 (executable)
@@ -18,4 +18,4 @@ END
 
 $AUTOMAKE || exit 1
 
-fgrep doe.o Makefile.in
+fgrep 'doe.$(OBJEXT)' Makefile.in
index 443a7535d2368addc510fd732bc82dd2f7ace0fc..b2fb984516290b0379ce322d084282fc4d46710c 100755 (executable)
@@ -15,4 +15,4 @@ END
 
 $AUTOMAKE || exit 1
 
-grep '^libapp_1_OBJECTS' Makefile.in | grep '\.o'
+grep '^libapp_1_OBJECTS' Makefile.in | fgrep '.$(OBJEXT)'
index 08c847a6679468967082ead0daa5f2a2f4b8a8c7..90c1e5adb62e9d480cc3b14e0ca2b19e9ca98fb5 100755 (executable)
@@ -16,4 +16,4 @@ END
 
 $AUTOMAKE || exit 1
 
-grep 'z\.o' Makefile.in
+fgrep 'z.$(OBJEXT)' Makefile.in
index f08276d3eb6d4c0ef8363c8a633c00d7a3c8a779..f2cfc29dc73f78a508ac4e58325128f3fe9bc8f0 100755 (executable)
@@ -19,8 +19,8 @@ END
 
 $AUTOMAKE || exit 1
 
-fgrep 'generic/a.o' Makefile.in || exit 1
-grep '[^/]a\.o' Makefile.in && exit 1
+fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
+grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
 
 # Opportunistically test for a different bug.
-grep '^generic/b.o:.*dirstamp' Makefile.in
+grep '^generic/b.\$(OBJEXT):.*dirstamp' Makefile.in
index 606b19aab2c2150ac572237e57d969ffa2c8ff0b..302f6a8664a331314dba0811905fdf18ce3edc3c 100755 (executable)
@@ -18,6 +18,6 @@ END
 
 $AUTOMAKE || exit 1
 
-fgrep 'generic/a.o' Makefile.in || exit 1
-grep '[^/]a\.o' Makefile.in && exit 1
+fgrep 'generic/a.$(OBJEXT)' Makefile.in || exit 1
+grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
 fgrep -e '-c -o' Makefile.in
index b2f144ee57c9af58f1bba36ae0b2bf312653d758..d9f1d1385e720b9ab6f7e8fab448a3386825bc06 100755 (executable)
@@ -25,6 +25,11 @@ END
 : > config.guess
 : > config.sub
 
-$AUTOMAKE -a || exit 1
+set -e
 
-test "`fgrep '.c.o' Makefile.in | wc -l`" -eq 1
+$AUTOMAKE -a
+
+grep -c '^\.c\.o:' Makefile.in   | grep '^1$'
+grep -c '^\.c\.obj:' Makefile.in | grep '^1$'
+
+exit 0
This page took 0.066381 seconds and 5 git commands to generate.