The handling of err.h and const.h were in a real tangle and didn't

work if you didn't explicitly depend first; this should both simplify
things and make it work in all circumstances.
Reviewed by:
Submitted by:
This commit is contained in:
Jordan K. Hubbard 1994-08-07 21:28:27 +00:00
parent 15e31b9bf5
commit db6ec19933
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1915

View file

@ -7,12 +7,10 @@
PROG= csh
DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
#CFLAGS+=-g
#CFLAGS+=-Wall -ansi -pedantic
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
sem.c set.c str.c time.c
sem.c set.c str.c time.c const.h err.h
.PATH: ${.CURDIR}/../../usr.bin/printf
MAN1= csh.1
@ -39,8 +37,4 @@ const.h: const.c
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
sort >> $@
./const.h: const.h
./err.h: err.h
.depend: const.h err.h
.include <bsd.prog.mk>