Subject: bug in bsd.dep.mk
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Michael L. VanLoon -- Iowa State University <michaelv@iastate.edu>
List: current-users
Date: 02/27/1994 10:59:28
The bsd.README file in /usr/share/mk says that make clean isn't
supposed to remove .depend files, but make cleandir is.  However, it
hasn't worked this way for a long time.  I really prefer that
behaviour and I'm getting tired of reapplying this patch every time I
get new sources. :-)  So, here's the fix:

     ---------- >8 ----- snip ----- 8< ----------
*** bsd.dep.mk.orig     Fri Dec 17 00:44:09 1993
--- bsd.dep.mk  Sat Feb 26 18:19:11 1994
***************
*** 40,46 ****
  .endif
  
  .if defined(SRCS)
! clean: cleandepend
  cleandepend:
        rm -f .depend ${.CURDIR}/tags
  .endif
--- 40,47 ----
  .endif
  
  .if defined(SRCS)
! clean:
! cleandir: cleandepend
  cleandepend:
        rm -f .depend ${.CURDIR}/tags
  .endif
     ---------- >8 ----- snip ----- 8< ----------

------------------------------------------------------------------------------
    Michael L. VanLoon  --  michaelv@iastate.edu  --  gg.mlv@isumvs.bitnet
 Iowa State University of Science and Technology -- The way cool place to be!
   Project Vincent Systems Staff, Iowa State University Computation Center
------------------------------------------------------------------------------



------------------------------------------------------------------------------