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

incoorect use of FORCE in build system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • infrastructure
    • None
    • beta
    • generic
    • generic



      Name: dm26566 Date: 05/24/2000


      The following makefiles depend on a FORCE rule in Rules.gmk. Each one of
      them in an improper use of FORCE. In most cases, the FORCE can be
      removed because the targets are a dependency of a .PHONY rule. In other
      cases, new .PHONY rules and depencies should be created.

      Finally, in one case the FORCE dependency does no good and may cause build
      failures on other platforms:
         ./sun/awt/GNUmakefile
            $(PRINTDEST) : FORCE
      This rule results in the creation of a directory identified by $(PRINTDEST).
      The rule will be invoked if the directory does not exist. Use of FORCE on
      this rule perfoms an unnecessary "$(MKDIR) -p $@", which may fail on some
      platforms.

      ./ishield/jre/GNUmakefile
           copy_install: FORCE
           prune: $(TMPDIR)/rt.out $(TMPDIR)/jaws.out $(TMPDIR)/i18n.out FORCE
           doit: FORCE
           crunch: FORCE
           uncrunch: FORCE
           FORCE:
           
      ./java/hprof/GNUmakefile
           clean:: FORCE
           
      ./java/java/GNUmakefile
           clean:: FORCE
           clobber:: FORCE
           clean:: FORCE
           
      ./java/jcov/GNUmakefile
           clean:: FORCE
           
      ./java/jvm/GNUmakefile
           clean:: FORCE
           clobber:: FORCE
           
      ./makefiles/Rules.gmk
           FORCE: ;
           
      ./sun/accessibility/GNUmakefile
           fetch_swing_java_files: FORCE
           
      ./sun/awt/GNUmakefile
           debughelper.clean : FORCE
           awt.clean: FORCE
           $(PRINTDEST) : FORCE
           
      ./sun/cmm/GNUmakefile
           res.clean: FORCE
           
      ./sun/javac/bootck/Check.gmk
           FORCE: ;
           .delete.stage1.classes.list: FORCE
           .delete.stage2.classes.list: FORCE
           .delete.stage3.classes.list: FORCE
           
      ./sun/javac/sources/GNUmakefile
           .make.source.directories: FORCE
           .delete.sources.list: FORCE
           FORCE: ;
           .PHONY: .make.source.directories .delete.sources.list FORCE
           
      ./sun/rmi/cgi/GNUmakefile
           clean:: FORCE
           
      ./sun/swing/GNUmakefile
           $(SWINGJAR): FORCE
           $(MOTIFJAR) $(WINDOWSJAR) $(MACJAR): FORCE
           $(MULTIJAR): FORCE
           sources: swing_sources FORCE
      ======================================================================

            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: