Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (59 sloc) 1.825 kb
0031607 Add a cleandir to make build, to make it more like it was before.
cjs authored
1 # $NetBSD: Makefile,v 1.41 1997/05/29 14:23:02 cjs Exp $
448982f pull in bsd.own.mk earlier, to get configuration variables.
cgd authored
2
3 .include <bsd.own.mk> # for configuration variables.
a445358 change "Id" to "Header" in rcsid, and noted why etc was not in subdirs
cgd authored
4
5 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
729d7b8 after 0.2.2 "stable" patches applied
cgd authored
6
634e8c1 allow builds to work if directory games is missing. Closes pr misc/19…
explorer authored
7 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share
8
9 .if exists(games)
10 SUBDIR+= games
11 .endif
12
a984b18 put all of the gnu stuff in one place
cgd authored
13 SUBDIR+= gnu
c589a90 initial import of 386bsd-0.1 sources
cgd authored
14
c330d79 allow toplevel makefile to descend into sys
cgd authored
15 SUBDIR+= sys
16
85fcbdf add 'domestic' to subdirs list, if it exists.
cgd authored
17 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
18 SUBDIR+= domestic
19 .endif
20
72a7b88 Make regress only if directory exists. It can be optional.
brezak authored
21 .if exists(regress)
bfa953f add regress, but not for install. also, add "regress" target
cgd authored
22 .ifmake !(install)
23 SUBDIR+= regress
24 .endif
25
7e08344 oops, clean that up a bit
cgd authored
26 regression-tests:
27 @echo Running regression tests...
89cda50 work in the face of a /usr/src/obj directory
cgd authored
28 @(cd ${.CURDIR}/regress && ${MAKE} regress)
72a7b88 Make regress only if directory exists. It can be optional.
brezak authored
29 .endif
bfa953f add regress, but not for install. also, add "regress" target
cgd authored
30
f41d59f get krb4 includes installed, do distrib-dirs if DESTDIR not set
tls authored
31 beforeinstall:
32 .ifndef DESTDIR
33 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
35e8ebf behaviour of 'make build' should not change if DESTDIR is set; this i…
tls authored
34 .else
35 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
f41d59f get krb4 includes installed, do distrib-dirs if DESTDIR not set
tls authored
36 .endif
3c15833 stick distrib-dirs in beforeinstall -- should be cleaner?
tls authored
37
7413e10 add some new targets to DTRT when installing/building
cgd authored
38 afterinstall:
bc33876 if not installing man pages, don't remake whatis db
cgd authored
39 .ifndef NOMAN
89cda50 work in the face of a /usr/src/obj directory
cgd authored
40 (cd ${.CURDIR}/share/man && ${MAKE} makedb)
bc33876 if not installing man pages, don't remake whatis db
cgd authored
41 .endif
7413e10 add some new targets to DTRT when installing/building
cgd authored
42
35b22cb These updates to the build allow building against include files
cjs authored
43 oldbuild:
448982f pull in bsd.own.mk earlier, to get configuration variables.
cgd authored
44 (cd ${.CURDIR}/share/mk && ${MAKE} install)
f955638 Added "${MAKE} includes" to build target
jtc authored
45 ${MAKE} includes
649cdeb Don't cleandir on make build when UPDATE is set.
christos authored
46 .if !defined(UPDATE)
83db53f don't use 'make' explicitly
cgd authored
47 ${MAKE} cleandir
649cdeb Don't cleandir on make build when UPDATE is set.
christos authored
48 .endif
231fb48 when doing 'make build', build lib/csu & install it before building
cgd authored
49 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
89cda50 work in the face of a /usr/src/obj directory
cgd authored
50 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
51 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
448982f pull in bsd.own.mk earlier, to get configuration variables.
cgd authored
52 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
296f692 All of domestic/lib now builds without errors, so we build it all.
cjs authored
53 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
448982f pull in bsd.own.mk earlier, to get configuration variables.
cgd authored
54 ${MAKE} install)
85fcbdf add 'domestic' to subdirs list, if it exists.
cgd authored
55 .endif
83db53f don't use 'make' explicitly
cgd authored
56 ${MAKE} depend && ${MAKE} && ${MAKE} install
7413e10 add some new targets to DTRT when installing/building
cgd authored
57
35b22cb These updates to the build allow building against include files
cjs authored
58 build:
59 @# can't do domestic includes until crt0.o, etc. is built.
60 ${MAKE} EXPORTABLE_SYSTEM=1 includes
0031607 Add a cleandir to make build, to make it more like it was before.
cjs authored
61 .if !defined(UPDATE)
62 ${MAKE} cleandir
63 .endif
35b22cb These updates to the build allow building against include files
cjs authored
64 (cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE})
65 (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE})
66 (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE})
67 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
68 (cd ${.CURDIR}/domestic && ${MAKE} includes)
69 (cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE})
70 .endif
71 ${MAKE} depend && ${MAKE}
72
c589a90 initial import of 386bsd-0.1 sources
cgd authored
73 .include <bsd.subdir.mk>
Something went wrong with that request. Please try again.