Wed May 26 20:19:15 2021 UTC ()
Add a date tool


(christos)
diff -r1.209 -r1.210 src/tools/Makefile
diff -r0 -r1.1 src/tools/date/Makefile

cvs diff -r1.209 -r1.210 src/tools/Makefile (expand / switch to unified diff)

--- src/tools/Makefile 2021/05/06 13:23:36 1.209
+++ src/tools/Makefile 2021/05/26 20:19:15 1.210
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.209 2021/05/06 13:23:36 rin Exp $ 1# $NetBSD: Makefile,v 1.210 2021/05/26 20:19:15 christos Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include <bsd.endian.mk> 4.include <bsd.endian.mk>
5 5
6# Make sure that the ordered build/install processing applies when using 6# Make sure that the ordered build/install processing applies when using
7# plain make. 7# plain make.
8.MAIN: build_install 8.MAIN: build_install
9 9
10# TOOLDIR must be valid, unless MKTOOLS=no 10# TOOLDIR must be valid, unless MKTOOLS=no
11.if ${MKTOOLS:Uyes} != "no" 11.if ${MKTOOLS:Uyes} != "no"
12.if "${TOOLDIR}" == "" 12.if "${TOOLDIR}" == ""
13.error "TOOLDIR is undefined or empty" 13.error "TOOLDIR is undefined or empty"
14.elif "${TOOLDIR:tW:M/*}" == "" 14.elif "${TOOLDIR:tW:M/*}" == ""
@@ -81,27 +81,27 @@ LINT_BITS= lint lint2 @@ -81,27 +81,27 @@ LINT_BITS= lint lint2
81# make command line without "-j", so use dependencies in addition to .ORDER. 81# make command line without "-j", so use dependencies in addition to .ORDER.
82# 82#
83.ORDER: dependall-host-mkdep dependall-compat dependall-binstall 83.ORDER: dependall-host-mkdep dependall-compat dependall-binstall
84.if make(dependall-host-mkdep) && make(dependall-compat) 84.if make(dependall-host-mkdep) && make(dependall-compat)
85dependall-compat: dependall-host-mkdep 85dependall-compat: dependall-host-mkdep
86.endif 86.endif
87.if make(dependall-compat) && make(dependall-binstall) 87.if make(dependall-compat) && make(dependall-binstall)
88dependall-binstall: dependall-compat 88dependall-binstall: dependall-compat
89.endif 89.endif
90 90
91# Dependencies in SUBDIR below ordered to maximize parallel ability. 91# Dependencies in SUBDIR below ordered to maximize parallel ability.
92# See above for special treatment for host-mkdep, compat, and binstall. 92# See above for special treatment for host-mkdep, compat, and binstall.
93# 93#
94SUBDIR= host-mkdep compat binstall \ 94SUBDIR= host-mkdep compat binstall date \
95 .WAIT mktemp .WAIT sed .WAIT genassym 95 .WAIT mktemp .WAIT sed .WAIT genassym
96.if ${TOOLS_BUILDRUMP} == "no" 96.if ${TOOLS_BUILDRUMP} == "no"
97SUBDIR+= cap_mkdb crunchgen ctags gencat hexdump \ 97SUBDIR+= cap_mkdb crunchgen ctags gencat hexdump \
98 ${LINT_BITS} \ 98 ${LINT_BITS} \
99 makewhatis mtree nbperf .WAIT uudecode 99 makewhatis mtree nbperf .WAIT uudecode
100.endif 100.endif
101 101
102SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex 102SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
103.if ${TOOLS_BUILDRUMP} == "no" 103.if ${TOOLS_BUILDRUMP} == "no"
104SUBDIR+= xz-include .WAIT grep xz-lib pax .WAIT libprop 104SUBDIR+= xz-include .WAIT grep xz-lib pax .WAIT libprop
105 105
106SUBDIR += .WAIT texinfo \ 106SUBDIR += .WAIT texinfo \
107 .WAIT tic \ 107 .WAIT tic \

File Added: src/tools/date/Makefile
#	$NetBSD: Makefile,v 1.1 2021/05/26 20:19:15 christos Exp $

HOSTPROGNAME=	${_TOOL_PREFIX}date
HOST_SRCDIR=	bin/date

.include "${.CURDIR}/../Makefile.host"