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

gnumake clobber/clean need fixing (java_hprof_demo) and in general

XMLWordPrintable

    • b31
    • generic
    • generic

      gnumake clobber/clean need fixing (java_hprof_demo) and in general

      Top level should just rm the OUTPUTDIR directory.

      The INCREMENTAL_BUILD should be set to false on all clean/clobber targets.
      It also appears that in general, the SUBDIRS should be traversed in reverse for clean and clobber targets.

      This problem was reported for java_hprof_demo too:
      Hi Kelly,

      I think there's a problem in the Makefile at:
      {mustang ws}/j2se/make/java/java_hprof_demo

      When I cd into the above directory and do a "gnumake clobber", it fails
      indicating the "lint.clean" target isn't defined.

      I also saw the same error when I did a "gnumake clobber" from j2se/make
      directory.

      The error went away after I've made the following changes:
      bash-2.05$ sccs diffs -C Makefile

      ------- Makefile -------
      *** /tmp/sccs.Ojaibp Wed Mar 23 12:07:43 2005
      --- Makefile Wed Mar 23 11:57:16 2005
      ***************
      *** 136,141 ****

        everything: all linterrs test doc

      ! clean clobber:: lint.clean
              $(RM) $(LIBDIR)/jvm.hprof.txt

      --- 136,141 ----

        everything: all linterrs test doc

      ! clean clobber::
              $(RM) $(LIBDIR)/jvm.hprof.txt

      thanks,
      Calvin

      ###@###.### 2005-03-24 01:32:56 GMT

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: