Home | History | Annotate | Line # | Download | only in src
Makefile revision 1.55
      1 #	$NetBSD: Makefile,v 1.55 1998/05/21 11:53:49 tv 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 sys
      8 
      9 .if exists(games)
     10 SUBDIR+= games
     11 .endif
     12 
     13 SUBDIR+= gnu
     14 # This is needed for libstdc++ and gen-params.
     15 includes-gnu: includes-include includes-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 .ifmake build
     33 	@echo -n "Build started at: "
     34 	@date
     35 .endif
     36 .ifndef DESTDIR
     37 	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
     38 .else
     39 	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
     40 .endif
     41 
     42 afterinstall:
     43 .ifndef NOMAN
     44 	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
     45 .endif
     46 
     47 build: beforeinstall
     48 	(cd ${.CURDIR}/share/mk && ${MAKE} install)
     49 	(cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
     50 .if exists(domestic) && !defined (EXPORTABLE_SYSTEM)
     51 .if exists(domestic/usr.bin/compile_et)
     52 	(cd ${.CURDIR}/domestic/usr.bin/compile_et && \
     53 	    ${MAKE} depend && ${MAKE} && \
     54 	    ${MAKE} install)
     55 .endif
     56 .if exists(domestic/usr.bin/make_cmds)
     57 	(cd ${.CURDIR}/domestic/usr.bin/make_cmds && \
     58 	    ${MAKE} depend && ${MAKE} && \
     59 	    ${MAKE} install)
     60 .endif
     61 .endif
     62 .if !defined(UPDATE)
     63 	${MAKE} cleandir
     64 .endif
     65 	${MAKE} includes
     66 	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     67 	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     68 	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     69 	(cd ${.CURDIR}/usr.bin/lex &&\
     70 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     71 	(cd ${.CURDIR}/usr.bin/yacc && \
     72 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     73 	(cd ${.CURDIR}/usr.bin/xlint && \
     74 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     75 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
     76 # libtelnet depends on libdes and libkrb.  libkrb depends on
     77 # libcom_err.
     78 .if exists(domestic/lib/libdes)
     79 	(cd ${.CURDIR}/domestic/lib/libdes && \
     80 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     81 .endif
     82 .if exists(domestic/lib/libcom_err)
     83 	(cd ${.CURDIR}/domestic/lib/libcom_err && \
     84 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     85 .endif
     86 .if exists(domestic/lib/libkrb)
     87 	(cd ${.CURDIR}/domestic/lib/libkrb && \
     88 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     89 .endif
     90 	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
     91 	    ${MAKE} install)
     92 .endif
     93 	${MAKE} depend && ${MAKE} && ${MAKE} install
     94 .if	(${MACHINE_ARCH} == "arm32") || \
     95 	(${MACHINE_ARCH} == "i386") || \
     96 	(${MACHINE_ARCH} == "mips") || \
     97 	(${MACHINE_ARCH} == "m68k") || \
     98 	(${MACHINE_ARCH} == "ns32k") || \
     99 	(${MACHINE_ARCH} == "sparc") || \
    100 	(${MACHINE_ARCH} == "vax")
    101 .if defined(USE_EGCS)
    102 	(cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\
    103 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
    104 .else
    105 	(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc &&\
    106 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
    107 .endif # USE_EGCS
    108 .endif # MACHINE_ARCH
    109 	@echo -n "Build finished at: "
    110 	@date
    111 
    112 .include <bsd.subdir.mk>
    113