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