Makefile revision 1.26
1# $NetBSD: Makefile,v 1.26 2003/07/10 10:34:13 lukem Exp $ 2 3# The `all' target must appear before bsd.own.mk is pulled in. 4all: 5 @echo "Please understand what you are doing, first." 6 @false 7 8.include <bsd.own.mk> 9.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 10 11SETSENV= DESTDIR=${DESTDIR:Q} \ 12 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ 13 CKSUM=${TOOL_CKSUM:Q} MAKE=${MAKE:Q} MTREE=${TOOL_MTREE:Q} \ 14 PAX=${TOOL_PAX:Q} 15 16print_machine: .PHONY 17 @echo ${MACHINE} 18 19print_machine_arch: .PHONY 20 @echo ${MACHINE_ARCH} 21 22print_machine_cpu: .PHONY 23 @echo ${MACHINE_CPU} 24 25print_object_fmt: .PHONY 26 @echo ${OBJECT_FMT} 27 28print_toolchain_missing: .PHONY 29 @echo "${TOOLCHAIN_MISSING}" 30 31print_x11_version: .PHONY 32.if defined(USE_XF86_4) && (${USE_XF86_4} != no) 33 @echo 4 34.else 35 @echo 3 36.endif 37 38# This target has debugging value only, really. 39makeflist: .PHONY check_DESTDIR 40 ${SETSENV} ${HOST_SH} ${.CURDIR}/makeflist 41 42# 43# SET BUILDING TARGETS 44# 45 46.PRECIOUS: checkflist 47checkflist: check_DESTDIR 48 ${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist ${UNPRIVED:D-M ${METALOG}} 49 50.PRECIOUS: checkflist-x11 51checkflist-x11: check_DESTDIR 52 ${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist -x11 53 54.PRECIOUS: maketars 55maketars: check_DESTDIR check_RELEASEDIR 56.if defined(DESTDIR) && ${DESTDIR} != "" 57 ${MAKE} checkflist 58.endif 59 mkdir -p ${RELEASEDIR}/${MACHINE}/binary/sets 60 ${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \ 61 ${UNPRIVED:D-M ${METALOG}} -N ${NETBSDSRCDIR}/etc \ 62 -t ${RELEASEDIR}/${MACHINE}/binary/sets ${MAKETARSETS} 63 64.PRECIOUS: makesrctars 65makesrctars: check_RELEASEDIR 66 mkdir -p ${RELEASEDIR}/source/sets 67 ${SETSENV} ${HOST_SH} ${.CURDIR}/makesrctars \ 68 ${NETBSDSRCDIR} ${RELEASEDIR}/source/sets 69 70.PRECIOUS: makesums 71makesums: check_RELEASEDIR 72 ${SETSENV} ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/binary/sets 73 74.PRECIOUS: installsets 75installsets: check_DESTDIR 76.if !defined(INSTALLDIR) 77 @echo "setenv INSTALLDIR before doing that!" 78 @false 79.endif 80 ${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \ 81 ${UNPRIVED:D-M ${METALOG}} -N ${NETBSDSRCDIR}/etc \ 82 -i ${INSTALLDIR} ${INSTALLSETS} 83 84# 85# MAIN ENTRY POINTS 86# 87 88sets: maketars .WAIT makesums 89 @true 90 91sourcesets: makesrctars 92 @true 93 94.include <bsd.sys.mk> 95