Home | History | Annotate | Line # | Download | only in sets
Makefile revision 1.31
      1 #	$NetBSD: Makefile,v 1.31 2003/09/30 04:58:20 lukem Exp $
      2 
      3 # The `all' target must appear before bsd.own.mk is pulled in.
      4 all:
      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 
     11 SETSENV=	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 		MKTEMP=${TOOL_MKTEMP:Q} PAX=${TOOL_PAX:Q} 
     15 
     16 print_have_gcc3:
     17 	@echo ${HAVE_GCC3}
     18 
     19 print_machine: .PHONY
     20 	@echo ${MACHINE}
     21 
     22 print_machine_arch: .PHONY
     23 	@echo ${MACHINE_ARCH}
     24 
     25 print_machine_cpu: .PHONY
     26 	@echo ${MACHINE_CPU}
     27 
     28 print_object_fmt: .PHONY
     29 	@echo ${OBJECT_FMT}
     30 
     31 print_toolchain_missing: .PHONY
     32 	@echo "${TOOLCHAIN_MISSING}"
     33 
     34 print_use_tools_toolchain: .PHONY
     35 	@echo "${USE_TOOLS_TOOLCHAIN}"
     36 
     37 print_x11_version: .PHONY
     38 .if defined(USE_XF86_4) && (${USE_XF86_4} != no)
     39 	@echo 4
     40 .else
     41 	@echo 3
     42 .endif
     43 
     44 # This target has debugging value only, really.
     45 makeflist: .PHONY check_DESTDIR
     46 	${SETSENV} ${HOST_SH} ${.CURDIR}/makeflist
     47 
     48 #
     49 # SET BUILDING TARGETS
     50 #
     51 
     52 .if ${MKUNPRIVED} == "no"
     53 METALOG.unpriv=
     54 .else
     55 METALOG.unpriv=	-M ${METALOG}
     56 .endif
     57 
     58 .PRECIOUS: checkflist
     59 checkflist: check_DESTDIR
     60 	${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist ${METALOG.unpriv}
     61 
     62 .PRECIOUS: checkflist-x11
     63 checkflist-x11: check_DESTDIR
     64 	${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist -x11
     65 
     66 .PRECIOUS: maketars
     67 maketars: check_DESTDIR check_RELEASEDIR
     68 .if defined(DESTDIR) && ${DESTDIR} != ""
     69 	${MAKE} checkflist${CHECKFLISTFLAGS}
     70 .endif
     71 	mkdir -p ${RELEASEDIR}/${MACHINE}/binary/sets
     72 	${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
     73 	    ${METALOG.unpriv} -N ${NETBSDSRCDIR}/etc \
     74 	    -t ${RELEASEDIR}/${MACHINE}/binary/sets ${MAKETARSETS}
     75 
     76 .PRECIOUS: makesrctars
     77 makesrctars: check_RELEASEDIR
     78 	mkdir -p ${RELEASEDIR}/source/sets
     79 	${SETSENV} ${HOST_SH} ${.CURDIR}/makesrctars \
     80 	    ${NETBSDSRCDIR} ${RELEASEDIR}/source/sets
     81 
     82 .PRECIOUS: makesums
     83 makesums: check_RELEASEDIR
     84 	${SETSENV} ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/binary/sets
     85 
     86 .PRECIOUS: installsets
     87 installsets: check_DESTDIR
     88 .if !defined(INSTALLDIR)
     89 	@echo "setenv INSTALLDIR before doing that!"
     90 	@false
     91 .endif
     92 	${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
     93 	    ${METALOG.unpriv} -N ${NETBSDSRCDIR}/etc \
     94 	    -i ${INSTALLDIR} ${INSTALLSETS}
     95 
     96 #
     97 # MAIN ENTRY POINTS
     98 #
     99 
    100 sets: maketars .WAIT makesums
    101 	@true
    102 
    103 sourcesets: makesrctars
    104 	@true
    105 
    106 .include <bsd.sys.mk>
    107