Home | History | Annotate | Line # | Download | only in src
Makefile revision 1.58
      1  1.58        tv #	$NetBSD: Makefile,v 1.58 1998/07/24 16:48:47 tv Exp $
      2  1.32       cgd 
      3  1.32       cgd .include <bsd.own.mk>			# for configuration variables.
      4   1.4       cgd 
      5  1.58        tv HAVE_GCC28!=	${CXX} --version | egrep "^(2\.8|egcs)" ; echo
      6  1.58        tv 
      7   1.4       cgd # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
      8   1.2       cgd 
      9  1.52   mycroft SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
     10  1.36  explorer 
     11  1.36  explorer .if exists(games)
     12  1.36  explorer SUBDIR+= games
     13  1.36  explorer .endif
     14  1.36  explorer 
     15   1.8       cgd SUBDIR+= gnu
     16  1.52   mycroft # This is needed for libstdc++ and gen-params.
     17  1.52   mycroft includes-gnu: includes-include includes-sys
     18   1.9       cgd 
     19  1.21       cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
     20  1.21       cgd SUBDIR+= domestic
     21  1.21       cgd .endif
     22  1.21       cgd 
     23  1.13    brezak .if exists(regress)
     24   1.9       cgd .ifmake !(install)
     25   1.9       cgd SUBDIR+= regress
     26   1.9       cgd .endif
     27   1.9       cgd 
     28  1.10       cgd regression-tests:
     29  1.10       cgd 	@echo Running regression tests...
     30  1.22       cgd 	@(cd ${.CURDIR}/regress && ${MAKE} regress)
     31  1.13    brezak .endif
     32  1.20       cgd 
     33  1.26       tls beforeinstall:
     34  1.45     perry .ifmake build
     35  1.45     perry 	@echo -n "Build started at: "
     36  1.45     perry 	@date
     37  1.45     perry .endif
     38  1.26       tls .ifndef DESTDIR
     39  1.26       tls 	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
     40  1.31       tls .else
     41  1.31       tls 	(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
     42  1.26       tls .endif
     43  1.15       cgd 
     44  1.15       cgd afterinstall:
     45  1.19       cgd .ifndef NOMAN
     46  1.22       cgd 	(cd ${.CURDIR}/share/man && ${MAKE} makedb)
     47  1.45     perry .endif
     48  1.15       cgd 
     49  1.43   thorpej build: beforeinstall
     50  1.32       cgd 	(cd ${.CURDIR}/share/mk && ${MAKE} install)
     51  1.47   thorpej 	(cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
     52  1.39  christos .if !defined(UPDATE)
     53  1.17       cgd 	${MAKE} cleandir
     54  1.39  christos .endif
     55  1.51        tv 	${MAKE} includes
     56  1.38       cgd 	(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     57  1.22       cgd 	(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     58  1.22       cgd 	(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     59  1.57     perry 	(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && ${MAKE} depend && ${MAKE} && ${MAKE} install)
     60  1.32       cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
     61  1.46   thorpej # libtelnet depends on libdes and libkrb.  libkrb depends on
     62  1.46   thorpej # libcom_err.
     63  1.49     lukem .if exists(domestic/lib/libdes)
     64  1.46   thorpej 	(cd ${.CURDIR}/domestic/lib/libdes && \
     65  1.46   thorpej 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     66  1.49     lukem .endif
     67  1.49     lukem .if exists(domestic/lib/libcom_err)
     68  1.46   thorpej 	(cd ${.CURDIR}/domestic/lib/libcom_err && \
     69  1.46   thorpej 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     70  1.49     lukem .endif
     71  1.49     lukem .if exists(domestic/lib/libkrb)
     72  1.44    mellon 	(cd ${.CURDIR}/domestic/lib/libkrb && \
     73  1.44    mellon 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     74  1.49     lukem .endif
     75  1.37       cjs 	(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE} && \
     76  1.32       cgd 	    ${MAKE} install)
     77  1.21       cgd .endif
     78  1.17       cgd 	${MAKE} depend && ${MAKE} && ${MAKE} install
     79  1.55        tv .if defined(USE_EGCS)
     80  1.58        tv .if defined(DESTDIR)
     81  1.58        tv .if (${HAVE_GCC28} == "")
     82  1.58        tv 	@echo '***** WARNING ***** Your system compiler is not GCC 2.8 or higher,'
     83  1.58        tv 	@echo 'and you have built a distribution with GCC 2.8 and DESTDIR set.'
     84  1.58        tv 	@echo 'You will need to rebuild libgcc from gnu/usr.bin/egcs/libgcc'
     85  1.58        tv 	@echo 'in order to have full C++ support in the binary set.'
     86  1.58        tv .endif # HAVE_GCC28
     87  1.58        tv .else
     88  1.55        tv 	(cd ${.CURDIR}/gnu/usr.bin/egcs/libgcc &&\
     89  1.55        tv 	    ${MAKE} depend && ${MAKE} && ${MAKE} install)
     90  1.58        tv .endif # DESTDIR
     91  1.55        tv .endif # USE_EGCS
     92  1.50    mellon 	@echo -n "Build finished at: "
     93  1.50    mellon 	@date
     94   1.1       cgd 
     95   1.1       cgd .include <bsd.subdir.mk>
     96