Annotation of src/Makefile, Revision 1.6
1.6 ! mickey 1: # $OpenBSD$
1.1 deraadt 2: # $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $
3:
1.6 ! mickey 4: .include <bsd.own.mk> # for NOMAN, if it's there.
! 5:
1.1 deraadt 6: # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
7:
8: SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games
9: SUBDIR+= gnu
10:
1.5 tholo 11: SUBDIR+= sys lkm
1.1 deraadt 12:
1.4 tholo 13: .if defined(KERBEROS)
1.2 tholo 14: SUBDIR+= kerberosIV
1.4 tholo 15: .endif
1.2 tholo 16:
1.1 deraadt 17: .if exists(regress)
18: .ifmake !(install)
19: SUBDIR+= regress
20: .endif
21:
22: regression-tests:
23: @echo Running regression tests...
24: @(cd ${.CURDIR}/regress && ${MAKE} regress)
25: .endif
26:
27: #beforeinstall:
1.6 ! mickey 28: #.ifndef DESTDIR
1.1 deraadt 29: # (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
1.6 ! mickey 30: #.else
! 31: # (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
! 32: #.endif
1.1 deraadt 33:
34: afterinstall:
35: .ifndef NOMAN
36: (cd ${.CURDIR}/share/man && ${MAKE} makedb)
37: .endif
38:
39: build:
1.6 ! mickey 40: (cd ${.CURDIR}/share/mk && ${MAKE} install)
1.1 deraadt 41: (cd ${.CURDIR}/include && ${MAKE} install)
1.6 ! mickey 42: .if defined(KERBEROS)
! 43: (cd ${.CURDIR}/kerberosIV/include && ${MAKE} install)
! 44: .endif
1.1 deraadt 45: ${MAKE} cleandir
46: (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
47: (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
1.4 tholo 48: .if defined(KERBEROS)
1.2 tholo 49: (cd ${.CURDIR}/kerberosIV && ${MAKE} build)
1.4 tholo 50: .endif
1.1 deraadt 51: ${MAKE} depend && ${MAKE} && ${MAKE} install
52:
53: .include <bsd.subdir.mk>