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