Home | History | Annotate | Line # | Download | only in src
Makefile revision 1.44
      1 #	$NetBSD: Makefile,v 1.44 1998/01/30 07:10:31 mellon Exp $
      2 
      3 .include <bsd.own.mk>			# for configuration variables.
      4 
      5 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
      6 
      7 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share
      8 
      9 .if exists(games)
     10 SUBDIR+= games
     11 .endif
     12 
     13 SUBDIR+= gnu
     14 
     15 SUBDIR+= sys
     16 
     17 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
     18 SUBDIR+= domestic
     19 .endif
     20 
     21 .if exists(regress)
     22 .ifmake !(install)
     23 SUBDIR+= regress
     24 .endif
     25 
     26 regression-tests:
     27 	@echo Running regression tests...
     28 	@(cd ${.CURDIR}/regress && ${MAKE} regress)
     29 .endif
     30 
     31 beforeinstall:
     32 .ifndef DESTDIR
     33 	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
     34 .else
     35 	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
     36 .endif
     37 
     38 afterinstall:
     39 .ifndef NOMAN
     40 	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
     41 .endif
     42 
     43 build: beforeinstall
     44 	(cd ${.CURDIR}/share/mk && ${MAKE} install)
     45 .if exists(domestic) && !defined (EXPORTABLE_SYSTEM)
     46 	(cd ${.CURDIR}/domestic/usr.bin/compile_et && \
     47 	    ${MAKE} depend && ${MAKE} && \
     48 	    ${MAKE} install)
     49 	(cd ${.CURDIR}/domestic/usr.bin/make_cmds && \
     50 	    ${MAKE} depend && ${MAKE} && \
     51 	    ${MAKE} install)
     52 .endif
     53 	${MAKE} includes
     54 .if !defined(UPDATE)
     55 	${MAKE} cleandir
     56 .endif
     57 	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     58 	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     59 	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     60 	(cd ${.CURDIR}/usr.bin/lex &&\
     61 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     62 	(cd ${.CURDIR}/usr.bin/yacc && \
     63 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     64 	(cd ${.CURDIR}/usr.bin/xlint && \
     65 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     66 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
     67 	(cd ${.CURDIR}/domestic/lib/libkrb && \
     68 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     69 	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
     70 	    ${MAKE} install)
     71 .endif
     72 	${MAKE} depend && ${MAKE} && ${MAKE} install
     73 
     74 .include <bsd.subdir.mk>
     75