Fixed building with `make -jN'. Put ss_err.h in SRCS so that recent

changes to bsd.lib.mk can handle building it early enough.  Don't
use the same rule for ss_err.h and ss_err.c, else `make -jN' would
run the rule twice concurrently.  Don't put ss_err.c out of order
in SRCS; doing so was a kludge to get ss_err.h built early enough
for plain `make'.

Don't put a non-generated file in CLEANFILES.
This commit is contained in:
Bruce Evans 1998-03-06 08:26:00 +00:00
parent 14172e4615
commit 2840666108
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34095

View File

@ -1,11 +1,11 @@
# $Id$
# $Id: Makefile,v 1.17 1997/02/22 15:08:00 peter Exp $
LIB= ss
SRCS= ss_err.c data.c error.c execute_cmd.c help.c invocation.c list_rqs.c \
SRCS= data.c error.c execute_cmd.c help.c invocation.c list_rqs.c \
listen.c pager.c parse.c prompt.c request_tbl.c requests.c \
std_rqs.c
ss_err.c ss_err.h std_rqs.c
CFLAGS+= -I. -I${.CURDIR} -DPOSIX -DIN_LIBSS
CLEANFILES+= ss ss_err.c ss_err.h std_rqs.c
CLEANFILES+= ss_err.c ss_err.h std_rqs.c
.if exists(${.OBJDIR}/../libcom_err)
LIBDESTDIR= ${.OBJDIR}/../libcom_err
.else
@ -14,7 +14,9 @@ LIBDESTDIR= ${.CURDIR}/../libcom_err
DPADD= ${LIBDESTDIR}/libcom_err.a
LDADD= -L${LIBDESTDIR} -lcom_err
ss_err.h ss_err.c: ${.CURDIR}/ss_err.et
ss_err.c: ss_err.h
ss_err.h: ${.CURDIR}/ss_err.et
test -e ss_err.et || ln -s ${.CURDIR}/ss_err.et .
compile_et ss_err.et
-test -h ss_err.et && rm -f ss_err.et
@ -35,4 +37,3 @@ beforeinstall:
.endif
.include <bsd.lib.mk>