Added new standard target "includes" (used to install header files) to

bsd.subdir.mk.  Added some documentation to bsd.README.
This commit is contained in:
jtc 1996-04-04 02:05:03 +00:00
parent acf9d62a7b
commit f9ff89048b
2 changed files with 18 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.15 1996/01/22 22:46:06 cgd Exp $
# $NetBSD: bsd.README,v 1.16 1996/04/04 02:05:03 jtc Exp $
# @(#)bsd.README 5.1 (Berkeley) 5/11/90
This is the README file for the new make "include" files for the BSD
@ -203,7 +203,7 @@ The include file <bsd.prog.mk> handles building programs from one or
more source files, along with their manual pages. It has a limited number
of suffixes, consistent with the current needs of the BSD tree.
It has seven targets:
It has eight targets:
all:
build the program and its manual page
@ -216,6 +216,8 @@ It has seven targets:
depend:
make the dependencies for the source files, and store
them in the file .depend.
includes:
install any header files.
install:
install the program and its manual pages; if the Makefile
does not itself define the target install, the targets
@ -330,12 +332,12 @@ If foo has multiple source files, add the line:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The include file <bsd.subdir.mk> contains the default targets for building
subdirectories. It has the same seven targets as <bsd.prog.mk>: all, clean,
cleandir, depend, install, lint, and tags. For all of the directories
listed in the variable SUBDIRS, the specified directory will be visited
and the target made. There is also a default target which allows the
command "make subdir" where subdir is any directory listed in the variable
SUBDIRS.
subdirectories. It has the same eight targets as <bsd.prog.mk>: all,
clean, cleandir, depend, includes, install, lint, and tags. For all of
the directories listed in the variable SUBDIRS, the specified directory
will be visited and the target made. There is also a default target which
allows the command "make subdir" where subdir is any directory listed in
the variable SUBDIRS.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@ -348,9 +350,9 @@ yacc that allow multiple lex and yacc targets to be built in parallel.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The include file <bsd.lib.mk> has support for building libraries. It has
the same seven targets as <bsd.prog.mk>: all, clean, cleandir, depend,
install, lint, and tags. It has a limited number of suffixes, consistent
with the current needs of the BSD tree.
the same eight targets as <bsd.prog.mk>: all, clean, cleandir, depend,
includes, install, lint, and tags. It has a limited number of suffixes,
consistent with the current needs of the BSD tree.
It sets/uses the following variables:

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.subdir.mk,v 1.10 1995/07/24 04:22:29 cgd Exp $
# $NetBSD: bsd.subdir.mk,v 1.11 1996/04/04 02:05:06 jtc Exp $
# @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
.if !target(.MAIN)
@ -60,6 +60,10 @@ clean: _SUBDIRUSE
cleandir: _SUBDIRUSE
.endif
.if !target(includes)
includes: _SUBDIRUSE
.endif
.if !target(depend)
depend: _SUBDIRUSE
.endif