programs will build even without a make depend first.
okay tb@ millert@
-# $OpenBSD: Makefile,v 1.14 2015/10/26 21:57:42 naddy Exp $
+# $OpenBSD: Makefile,v 1.15 2017/06/16 10:25:54 espie Exp $
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
sort >> $@
.depend alloc.o: const.h error.h
+BUILDFIRST = const.h error.h
.include <bsd.prog.mk>
-# $OpenBSD: Makefile.bsd-wrapper,v 1.16 2016/01/20 12:45:16 sthen Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.17 2017/06/16 10:25:54 espie Exp $
LIB= iberty
CPPFLAGS+= -DHAVE_CONFIG_H -I$(.CURDIR)/src -I$(.CURDIR)/include -I$(.OBJDIR)
depend: needed-list
+BUILDFIRST = needed-list
+
needed-list: config.status
${MAKE} ${GNUCFLAGS} CC="${CC}" needed-list
# $FreeBSD: src/gnu/usr.bin/cc/libcpp/Makefile,v 1.1.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.2 2009/10/15 21:08:01 robert Exp $
+# $OpenBSD: Makefile,v 1.3 2017/06/16 10:25:54 espie Exp $
# Use our headers in preference to ones from ../cc_tools.
CFLAGS+= -I${.CURDIR} -I.
NOPROFILE= Yes
NOPIC= Yes
+BUILDFIRST = localedir.h
+
localedir.h: Makefile
echo '#define LOCALEDIR "/usr/share/locale"' > localedir.h
SRCS+= localedir.h
# $FreeBSD: src/gnu/lib/libgcov/Makefile,v 1.6 2009/06/21 01:54:47 kan Exp $
-# $OpenBSD: Makefile,v 1.2 2013/05/18 18:21:39 miod Exp $
+# $OpenBSD: Makefile,v 1.3 2017/06/16 10:25:54 espie Exp $
.include <bsd.own.mk>
CLEANFILES += cs-*.h option*
${OBJS} beforedepend: ${COMMONHDRS}
+BUILDFIRST = ${COMMONHDRS}
+BUILDAFTER += ${OBJS_T} ${OBJS_P} ${OBJS_S}
${OBJS_T}: libgcov.c
${CC_T} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c}
# $FreeBSD: src/gnu/lib/libobjc/Makefile,v 1.34.2.1 2009/08/03 08:13:06 kensmith Exp $
-# $OpenBSD: Makefile,v 1.5 2017/02/15 21:22:53 miod Exp $
+# $OpenBSD: Makefile,v 1.6 2017/06/16 10:25:54 espie Exp $
OBJCDIR=${.CURDIR}/../../../gcc/libobjc
GCCDIR= ${.CURDIR}/../../../gcc/gcc
.endif
${OBJS}: ${GENHDRS}
+BUILDFIRST = ${GENHDRS}
.include <bsd.lib.mk>
-# $OpenBSD: Makefile,v 1.18 2017/05/29 09:44:01 deraadt Exp $
+# $OpenBSD: Makefile,v 1.19 2017/06/16 10:25:54 espie Exp $
LIB= crypto
LIBREBUILD=y
.endif
all beforedepend: ${GENERATED}
+BUILDFIRST = ${GENERATED}
.include <bsd.lib.mk>
-# $OpenBSD: Makefile,v 1.70 2016/09/16 17:24:20 nicm Exp $
+# $OpenBSD: Makefile,v 1.71 2017/06/16 10:25:54 espie Exp $
# Uncomment this to enable tracing in libcurses
#CURSESTRACE=-DTRACE
beforedepend: ${GENERATED}
+BUILDFIRST = ${GENERATED}
+
includes:
@cmp -s ${DESTDIR}/usr/include/ncurses.h ${.CURDIR}/curses.h || \
${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
-# $OpenBSD: Makefile,v 1.26 2016/05/24 18:06:30 schwarze Exp $
+# $OpenBSD: Makefile,v 1.27 2017/06/16 10:25:54 espie Exp $
# $NetBSD: Makefile,v 1.41 2010/02/03 15:34:43 roy Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93
HOST_SH= sh
.depend: ${AHDR} fcns.h func.h help.h
+BUILDFIRST = ${AHDR} fcns.h func.h help.h
vi.h: vi.c makelist
${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c \
-# $OpenBSD: Makefile,v 1.11 2016/10/16 19:28:44 tb Exp $
+# $OpenBSD: Makefile,v 1.12 2017/06/16 10:25:54 espie Exp $
RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x \
beforedepend: ${HDRS}
prereq: ${HDRS}
+BUILDFIRST = ${HDRS}
+
includes: ${HDRS}
${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
${DESTDIR}/usr/include/rpcsvc
-# $OpenBSD: Makefile,v 1.85 2016/09/03 23:14:56 deraadt Exp $
+# $OpenBSD: Makefile,v 1.86 2017/06/16 10:25:54 espie Exp $
# $EOM: Makefile,v 1.78 2000/10/15 21:33:42 niklas Exp $
#
${PROG} beforedepend: ${GENERATED}
+BUILDFIRST = ${GENERATED}
+
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
-# $OpenBSD: Makefile,v 1.41 2016/05/12 19:17:03 deraadt Exp $
+# $OpenBSD: Makefile,v 1.42 2017/06/16 10:25:54 espie Exp $
.if ${MACHINE} != "octeon"
CLEANFILES+= keysym.h y.tab.h
beforedepend: keysym.h
+keysym.o: keysym.h
keysym.h: mkkeysym.sh ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h
sh ${.CURDIR}/mkkeysym.sh \
-# $OpenBSD: Makefile,v 1.14 2013/08/18 22:06:44 miod Exp $
+# $OpenBSD: Makefile,v 1.15 2017/06/16 10:25:54 espie Exp $
PROG= awk
SRCS= ytab.c lex.c b.c main.c parse.c proctab.c tran.c lib.c run.c
mv y.tab.c ytab.c
mv y.tab.h ytab.h
+BUILDFIRST = ytab.h
+
proctab.c: maketab
./maketab >proctab.c
-# $OpenBSD: Makefile,v 1.3 2011/06/23 22:46:12 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2017/06/16 10:25:54 espie Exp $
PROG= infocmp
SRCS= infocmp.c dump_entry.c
beforedepend: termsort.c
+dump_entry.o: termsort.c
+
termsort.c: ${TIC}/MKtermsort.sh
sh ${TIC}/MKtermsort.sh awk ${CURSES}/Caps > ${.TARGET}
-# $OpenBSD: Makefile,v 1.8 2012/09/10 04:03:36 deraadt Exp $
+# $OpenBSD: Makefile,v 1.9 2017/06/16 10:25:54 espie Exp $
PROG= tic
SRCS= dump_entry.c tic.c
beforedepend: termsort.c
+dump_entry.o: termsort.c
+
termsort.c: MKtermsort.sh
sh ${.CURDIR}/MKtermsort.sh awk ${CURSES}/Caps > ${.TARGET}
-# $OpenBSD: Makefile,v 1.10 2016/03/30 06:38:46 jmc Exp $
+# $OpenBSD: Makefile,v 1.11 2017/06/16 10:25:54 espie Exp $
PROG= tset
SRCS= tset.c dump_entry.c
beforedepend: termsort.c
+dump_entry.o: termsort.c
+
termsort.c: ${TIC}/MKtermsort.sh
sh ${TIC}/MKtermsort.sh awk ${CURSES}/Caps > ${.TARGET}
-# $OpenBSD: Makefile,v 1.5 2008/06/13 21:32:26 sturm Exp $
+# $OpenBSD: Makefile,v 1.6 2017/06/16 10:25:54 espie Exp $
PROG = rpc.lockd
SRCS = nlm_prot_svc.c lockd.c lockd_lock.c procs.c
nlm_prot.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
+BUILDFIRST = nlm_prot.h
+
test: test.c
cc -o test test.c -lrpcsvc
-# $OpenBSD: Makefile,v 1.1 2008/06/15 04:43:28 sturm Exp $
+# $OpenBSD: Makefile,v 1.2 2017/06/16 10:25:54 espie Exp $
PROG= rpc.statd
SRCS= procs.c sm_inter_svc.c statd.c
sm_inter.h: ${RPCSRC}
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
+BUILDFIRST = sm_inter.h
+
test: ${.CURDIR}/test.c
cc -o test ${.CURDIR}/test.c -lrpcsvc
-# $OpenBSD: Makefile,v 1.12 2015/10/26 10:12:46 deraadt Exp $
+# $OpenBSD: Makefile,v 1.13 2017/06/16 10:25:54 espie Exp $
PROG= ypserv
MAN= ypserv.acl.5 securenet.5 ypserv.8
beforedepend: ${HDRS}
ypv1.c: ypv1.h
+BUILDFIRST = ${HDRS}
ypv1.c: ypv1.x
rpcgen -C -c ${.CURDIR}/ypv1.x -o ypv1.c