Home | History | Annotate | Line # | Download | only in sets
Makefile revision 1.6
      1 #	$NetBSD: Makefile,v 1.6 2002/02/27 10:51:47 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 #
      9 # DETERMINE WHICH CRYPTO SET TO USE
     10 #
     11 
     12 .include <bsd.own.mk>
     13 
     14 #
     15 # UTILITY TARGETS
     16 #
     17 
     18 check_destdir: .PHONY
     19 .if !defined(DESTDIR)
     20 	@echo "DESTDIR must be set"
     21 	@false
     22 .else
     23 	@true
     24 .endif
     25 
     26 check_releasedir: .PHONY
     27 .if !defined(RELEASEDIR)
     28 	@echo "RELEASEDIR must be set"
     29 	@false
     30 .else
     31 	@true
     32 .endif
     33 
     34 SETSENV=	DESTDIR=${DESTDIR:Q} \
     35 		MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
     36 		MAKE=${MAKE:Q} MTREE=${MTREE:Q} PAX=${PAX:Q} 
     37 
     38 print_machine: .PHONY
     39 	@echo ${MACHINE}
     40 
     41 print_machine_arch: .PHONY
     42 	@echo ${MACHINE_ARCH}
     43 
     44 print_machine_cpu: .PHONY
     45 	@echo ${MACHINE_CPU}
     46 
     47 print_object_fmt: .PHONY
     48 	@echo ${OBJECT_FMT}
     49 
     50 print_use_new_toolchain: .PHONY
     51 	@echo "${USE_NEW_TOOLCHAIN:Dyes}"
     52 
     53 print_x11_version: .PHONY
     54 .if defined(USE_XF86_4) && (${USE_XF86_4} != no)
     55 	@echo 4
     56 .else
     57 	@echo 3
     58 .endif
     59 
     60 # This target has debugging value only, really.
     61 makeflist: .PHONY check_destdir
     62 	${SETSENV} sh ${.CURDIR}/makeflist
     63 
     64 #
     65 # SET BUILDING TARGETS
     66 #
     67 
     68 .PRECIOUS: checkflist
     69 checkflist: check_destdir
     70 	${SETSENV} sh ${.CURDIR}/checkflist
     71 
     72 .PRECIOUS: checkflist
     73 checkflist-x11: check_destdir
     74 	${SETSENV} sh ${.CURDIR}/checkflist -x11
     75 
     76 .PRECIOUS: maketars
     77 maketars: check_destdir check_releasedir
     78 	${SETSENV} sh ${.CURDIR}/maketars ${UNPRIVED:D-M ${METALOG}} \
     79 		-d ${DESTDIR} -t ${RELEASEDIR}/binary/sets
     80 
     81 .PRECIOUS: makesums
     82 makesums: check_releasedir
     83 	${SETSENV} sh ${.CURDIR}/makesums -t ${RELEASEDIR}/binary/sets
     84 
     85 #
     86 # MAIN ENTRY POINTS
     87 #
     88 
     89 sets: maketars makesums
     90 	@true
     91