Subject: Re: Make cleandir bug?
To: Stephen J. Roznowski <sjr@zombie.ncsc.mil>
From: Frank van der Linden <vdlinden@fwi.uva.nl>
List: current-users
Date: 12/22/1994 21:38:35
Stephen J. Roznowski writes:

> I just SUP-ped this morning (22 Dec) and was following the instructions
> for updating (reinstall /usr/share/mk; rebuild gcc2).

> When I attempted to do a "make cleandir" in gcc2, I got an error in
> "common" that one of the lines was just "rm -f".

Yep, I had the same thing. The problem appears to be, that bsd.man.mk
has an empty ${MANALL} when used, for example, through bsd.lib.mk
in a library makefile that does not have any manual page targets (gcc2/common
is such a case).

A quick fix that worked for me (not sure if this is the Right Thing (tm) to do,
but it works for me):

*** /usr/src/share/mk/bsd.man.mk	Thu Dec 22 17:28:48 1994
--- bsd.man.mk	Fri Dec 23 19:10:52 1994
***************
*** 49,55 ****
  	done; true
  .endif

! .if defined(MANALL)
  all: ${MANALL}

  cleandir: cleanman
--- 49,55 ----
  	done; true
  .endif

! .if defined(MANALL) && !empty(MANALL)
  all: ${MANALL}

  cleandir: cleanman
-- 

- Frank