Subject: misc/2290: allow NODOC to prevent installation of doc files
To: None <gnats-bugs@NetBSD.ORG>
From: Brian de Alwis <bsdealwi@undergrad.math.uwaterloo.ca>
List: netbsd-bugs
Date: 04/02/1996 10:50:40
>Number:         2290
>Category:       misc
>Synopsis:       allow NODOC to prevent installation of doc files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr  2 11:20:09 1996
>Last-Modified:
>Originator:     Brian de Alwis
>Organization:
	by size
>Release:        95/03/30
>Environment:
	Irrelevant
System: NetBSD portia 1.1B NetBSD 1.1B (PORTIA) #2: Mon Apr 1 20:10:02 EST 1996 root@:/usr2/src/sys/arch/i386/compile/PORTIA i386


>Description:
	We have NOMAN, NOPIC, NOPROFILE, NOLINT, etc. to prevent certain
	steps in the build and installation process. We have no way of
	preventing doc files from being installed.

	The patch below does this.
>How-To-Repeat:
>Fix:
*** bsd.doc.mk	Fri Oct 13 21:34:39 1995
--- /usr/share/mk/bsd.doc.mk	Mon Apr  1 21:08:17 1996
***************
*** 40,49 ****
--- 40,53 ----
  clean cleandir:
  	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
  
+ .if defined(NODOC)
+ install:
+ .else
  FILES?=	${SRCS}
  install:
  	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
  	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
+ .endif
  
  spell: ${SRCS}
  	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
>Audit-Trail:
>Unformatted: