Fix broken makefile.

This commit is contained in:
Poul-Henning Kamp 1995-02-12 02:35:35 +00:00
parent ceb3de7af6
commit 4519b73393
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6317

View File

@ -1,11 +1,11 @@
# $Id: Makefile,v 1.3 1995/01/23 18:56:40 wollman Exp $
# $Id: Makefile,v 1.4 1995/02/08 21:11:39 bde Exp $
LIB= ss
SRCS= ss_err.c 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
CFLAGS+= -I. -I${.CURDIR} -DPOSIX -DIN_LIBSS
CLEANFILES+= ss ss_err.c ss_err.et ss_err.h std_rqs.c std_rqs.ct
CLEANFILES+= ss ss_err.c ss_err.h std_rqs.c
.if exists(${.CURDIR}/../libcom_err/obj/.)
LDADD+= -L${.CURDIR}/../libcom_err/obj
.else
@ -13,14 +13,15 @@ LDADD+= -L${.CURDIR}/../libcom_err
.endif
LDADD+= -lcom_err
ss_err.h ss_err.c: ss_err.et
ss_err.h ss_err.c: ${.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 ss_err.et
std_rqs.c: std_rqs.ct
std_rqs.c: ${.CURDIR}/std_rqs.ct
test -e std_rqs.ct || ln -s ${.CURDIR}/std_rqs.ct .
mk_cmds std_rqs.ct
test -e ss || ln -s ${.CURDIR} ss
-test -h std_rqs.ct && rm std_rqs.ct
beforeinstall:
-cd ${.CURDIR}; cmp -s ss.h ${DESTDIR}/usr/include/ss/ss.h || \