1998-05-21 15:53:49 +04:00
|
|
|
# $NetBSD: Makefile,v 1.55 1998/05/21 11:53:49 tv Exp $
|
1996-04-13 10:36:15 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk> # for configuration variables.
|
1993-03-22 11:43:59 +03:00
|
|
|
|
|
|
|
# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
|
1993-03-21 21:04:42 +03:00
|
|
|
|
1998-05-10 14:37:59 +04:00
|
|
|
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
|
1996-08-11 03:29:00 +04:00
|
|
|
|
|
|
|
.if exists(games)
|
|
|
|
SUBDIR+= games
|
|
|
|
.endif
|
|
|
|
|
1993-04-29 16:42:00 +04:00
|
|
|
SUBDIR+= gnu
|
1998-05-10 14:37:59 +04:00
|
|
|
# This is needed for libstdc++ and gen-params.
|
|
|
|
includes-gnu: includes-include includes-sys
|
1993-07-04 18:02:11 +04:00
|
|
|
|
1995-02-19 15:20:06 +03:00
|
|
|
.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
|
|
|
|
SUBDIR+= domestic
|
|
|
|
.endif
|
|
|
|
|
1993-07-07 16:55:48 +04:00
|
|
|
.if exists(regress)
|
1993-05-22 11:10:28 +04:00
|
|
|
.ifmake !(install)
|
|
|
|
SUBDIR+= regress
|
|
|
|
.endif
|
|
|
|
|
1993-05-22 11:15:13 +04:00
|
|
|
regression-tests:
|
|
|
|
@echo Running regression tests...
|
1995-02-26 04:10:19 +03:00
|
|
|
@(cd ${.CURDIR}/regress && ${MAKE} regress)
|
1993-07-07 16:55:48 +04:00
|
|
|
.endif
|
1993-05-22 11:10:28 +04:00
|
|
|
|
1995-12-10 01:39:46 +03:00
|
|
|
beforeinstall:
|
1998-02-07 02:11:57 +03:00
|
|
|
.ifmake build
|
|
|
|
@echo -n "Build started at: "
|
|
|
|
@date
|
|
|
|
.endif
|
1995-12-10 01:39:46 +03:00
|
|
|
.ifndef DESTDIR
|
|
|
|
(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
|
1996-03-18 12:55:25 +03:00
|
|
|
.else
|
|
|
|
(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
|
1995-12-10 01:39:46 +03:00
|
|
|
.endif
|
1995-10-06 15:05:36 +03:00
|
|
|
|
1994-02-07 08:08:57 +03:00
|
|
|
afterinstall:
|
1994-06-14 08:40:29 +04:00
|
|
|
.ifndef NOMAN
|
1995-02-26 04:10:19 +03:00
|
|
|
(cd ${.CURDIR}/share/man && ${MAKE} makedb)
|
1994-06-14 08:40:29 +04:00
|
|
|
.endif
|
1994-02-07 08:08:57 +03:00
|
|
|
|
1997-10-27 21:06:39 +03:00
|
|
|
build: beforeinstall
|
1996-04-13 10:36:15 +04:00
|
|
|
(cd ${.CURDIR}/share/mk && ${MAKE} install)
|
1998-02-15 03:33:03 +03:00
|
|
|
(cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.if exists(domestic) && !defined (EXPORTABLE_SYSTEM)
|
|
|
|
.if exists(domestic/usr.bin/compile_et)
|
1998-01-30 10:10:31 +03:00
|
|
|
(cd ${.CURDIR}/domestic/usr.bin/compile_et && \
|
|
|
|
${MAKE} depend && ${MAKE} && \
|
|
|
|
${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.endif
|
|
|
|
.if exists(domestic/usr.bin/make_cmds)
|
1998-01-30 10:10:31 +03:00
|
|
|
(cd ${.CURDIR}/domestic/usr.bin/make_cmds && \
|
|
|
|
${MAKE} depend && ${MAKE} && \
|
|
|
|
${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.endif
|
1998-01-30 10:10:31 +03:00
|
|
|
.endif
|
1997-03-25 01:22:15 +03:00
|
|
|
.if !defined(UPDATE)
|
1994-02-10 04:47:47 +03:00
|
|
|
${MAKE} cleandir
|
1997-03-25 01:22:15 +03:00
|
|
|
.endif
|
1998-04-15 17:44:55 +04:00
|
|
|
${MAKE} includes
|
1997-03-11 02:46:12 +03:00
|
|
|
(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1995-02-26 04:10:19 +03:00
|
|
|
(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
|
|
|
|
(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1998-01-30 10:10:31 +03:00
|
|
|
(cd ${.CURDIR}/usr.bin/lex &&\
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
|
|
|
(cd ${.CURDIR}/usr.bin/yacc && \
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
|
|
|
(cd ${.CURDIR}/usr.bin/xlint && \
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1996-04-13 10:36:15 +04:00
|
|
|
.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
|
1998-02-10 07:38:13 +03:00
|
|
|
# libtelnet depends on libdes and libkrb. libkrb depends on
|
|
|
|
# libcom_err.
|
1998-02-16 13:07:31 +03:00
|
|
|
.if exists(domestic/lib/libdes)
|
1998-02-10 07:38:13 +03:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libdes && \
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.endif
|
|
|
|
.if exists(domestic/lib/libcom_err)
|
1998-02-10 07:38:13 +03:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libcom_err && \
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.endif
|
|
|
|
.if exists(domestic/lib/libkrb)
|
1998-01-30 10:10:31 +03:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libkrb && \
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
1998-02-16 13:07:31 +03:00
|
|
|
.endif
|
1996-11-27 05:04:06 +03:00
|
|
|
(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
|
1996-04-13 10:36:15 +04:00
|
|
|
${MAKE} install)
|
1995-02-19 15:20:06 +03:00
|
|
|
.endif
|
1994-02-10 04:47:47 +03:00
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install
|
1998-05-21 15:53:49 +04:00
|
|
|
.if (${MACHINE_ARCH} == "arm32") || \
|
|
|
|
(${MACHINE_ARCH} == "i386") || \
|
|
|
|
(${MACHINE_ARCH} == "mips") || \
|
|
|
|
(${MACHINE_ARCH} == "m68k") || \
|
|
|
|
(${MACHINE_ARCH} == "ns32k") || \
|
|
|
|
(${MACHINE_ARCH} == "sparc") || \
|
|
|
|
(${MACHINE_ARCH} == "vax")
|
|
|
|
.if defined(USE_EGCS)
|
|
|
|
(cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
|
|
|
.else
|
|
|
|
(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\
|
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install)
|
|
|
|
.endif # USE_EGCS
|
|
|
|
.endif # MACHINE_ARCH
|
1998-02-20 04:39:38 +03:00
|
|
|
@echo -n "Build finished at: "
|
|
|
|
@date
|
1994-02-07 08:08:57 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.subdir.mk>
|