Makefile revision 1.3
1#	$NetBSD: Makefile,v 1.3 2001/11/24 02:54:50 thorpej 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
14#
15# UTILITY TARGETS
16#
17
18check_destdir: .PHONY
19.if !defined(DESTDIR)
20	@echo "DESTDIR must be set"
21	@false
22.else
23	@true
24.endif
25
26check_releasedir: .PHONY
27.if !defined(RELEASEDIR)
28	@echo "RELEASEDIR must be set"
29	@false
30.else
31	@true
32.endif
33
34print_machine: .PHONY
35	@echo ${MACHINE}
36
37print_machine_arch: .PHONY
38	@echo ${MACHINE_ARCH}
39
40print_machine_cpu: .PHONY
41	@echo ${MACHINE_CPU}
42
43print_object_fmt: .PHONY
44	@echo ${OBJECT_FMT}
45
46print_use_new_toolchain: .PHONY
47	@echo "${USE_NEW_TOOLCHAIN:Dyes}"
48
49# This target has debugging value only, really.
50makeflist: .PHONY check_destdir
51	DESTDIR=${DESTDIR} MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} \
52	    MAKE=${MAKE} sh ${.CURDIR}/makeflist
53
54#
55# SET BUILDING TARGETS
56#
57
58.PRECIOUS: checkflist
59checkflist: check_destdir
60	DESTDIR=${DESTDIR} MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} \
61	    MAKE=${MAKE} sh ${.CURDIR}/checkflist
62
63.PRECIOUS: maketars
64maketars: check_destdir check_releasedir
65	sh ${.CURDIR}/maketars -d ${DESTDIR} -t ${RELEASEDIR}/binary/sets
66
67.PRECIOUS: makesums
68makesums: check_releasedir
69	sh ${.CURDIR}/makesums -t ${RELEASEDIR}/binary/sets
70
71#
72# MAIN ENTRY POINTS
73#
74
75sets: maketars makesums
76	@true
77