1# $Id: Makefile,v 1.8 1995/09/29 20:22:44 ache Exp $ 2 3# lib must be first, or it will not work. This is because we reference 4# the lib's in the directory where they are built from the binaries we 5# want to build. 6 7SUBDIR= lib usr.bin 8 9SDIR= ${.CURDIR}/.. 10 11CODAI= ${MAKE} ${MFLAGS} cleandir; \ 12 ${MAKE} ${MFLAGS} obj; \ 13 ${MAKE} ${MFLAGS} depend all install 14 15CODAD= ${MAKE} ${MFLAGS} MAKE_EBONES=yes cleandir; \ 16 ${MAKE} ${MFLAGS} MAKE_EBONES=yes obj; \ 17 ${MAKE} ${MFLAGS} MAKE_EBONES=yes depend all distribute 18 19# These are the programs which depend on secure libs 20sprog: 21 cd ${SDIR}/bin/ed; ${CODAI} 22 cd ${SDIR}/sbin/init; ${CODAI} 23 24bootstrap: 25 ( cd include; ${MAKE} ${MFLAGS} install ) 26 ( cd lib; ${MAKE} ${MFLAGS} depend all install ) 27 ${MAKE} ${MFLAGS} cleandir 28 ${MAKE} ${MFLAGS} obj 29 ${MAKE} ${MFLAGS} depend all install sprog 30 31help-distribute: distribute 32 cd ${SDIR}/bin/ed; ${CODAD} 33 cd ${SDIR}/sbin/init; ${CODAD} 34 35.include <bsd.subdir.mk> 36