Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4428588

$(CP) $? can be dangerous...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • infrastructure
    • None
    • beta
    • generic
    • generic



      Name: dm26566 Date: 03/21/2001


      The Make Automatic Variable $? expands out to all depencies on the
      list, thus the popular, but incorrect make rule command
              $(CP) $? $@
      will fail if another depency is added. To ensure that this rule
      always works, it should be changed to
              $(CP) $< $@

      The following files use this bad format:

      ./sun/awt/Makefile
      ./sun/cmm/Makefile
      ./javax/swing/plaf/Makefile
      ./javax/swing/Makefile
      ./common/Program.gmk
      ./common/Library.gmk


      ======================================================================

            dmcduffisunw Dale Mcduffie (Inactive)
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: