a233fbd53e
the .DOTLAST primitive by a boolean variable with the same name, this whole mechanism was broken ... it doesn't save much stat calls but it was wrong. Thanks to Jason Thorpe for the other shadow-variable fixing patches he made.
29 lines
955 B
Makefile
29 lines
955 B
Makefile
# $NetBSD: Makefile,v 1.26 2002/01/27 01:50:54 reinoud Exp $
|
|
# @(#)Makefile 5.2 (Berkeley) 12/28/90
|
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
|
PROG= make
|
|
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
|
|
make.c parse.c str.c suff.c targ.c trace.c var.c util.c
|
|
SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
|
|
lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
|
|
lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
|
|
lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
|
|
lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
|
|
.PATH: ${.CURDIR}/lst.lib
|
|
WARNS=2
|
|
WFORMAT= 1
|
|
.if make(install)
|
|
SUBDIR= PSD.doc
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.subdir.mk>
|
|
|
|
# provide a clue as to what we are using
|
|
BUILD_DATE!= date +%Y%m%d
|
|
MAKE_VERSION:= netbsd-${BUILD_DATE}
|
|
CPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
|
|
CPPFLAGS+= ${CPPFLAGS_${.TARGET}}
|
|
main.o: ${OBJS:Nmain.o} ${MAKEFILE}
|