summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-01-20 01:12:19 +0000
committerwollman <wollman@FreeBSD.org>1995-01-20 01:12:19 +0000
commit1817f78d2fec5ecb9781024e3048f57a7ab637ae (patch)
tree3f73c500849e7d5141ae68a4587cbaba442e4c49
parent409ac976ef302673b3fe6474691e67fb206b442c (diff)
downloadFreeBSD-src-1817f78d2fec5ecb9781024e3048f57a7ab637ae.zip
FreeBSD-src-1817f78d2fec5ecb9781024e3048f57a7ab637ae.tar.gz
A more correct fix for the new compile_et. Also, add beforeinstall
rule to ensure that krb_err.h gets installed (some other programs need it).
-rw-r--r--eBones/krb/Makefile17
-rw-r--r--eBones/lib/libkrb/Makefile17
2 files changed, 20 insertions, 14 deletions
diff --git a/eBones/krb/Makefile b/eBones/krb/Makefile
index f74d3dd..6314a80 100644
--- a/eBones/krb/Makefile
+++ b/eBones/krb/Makefile
@@ -1,11 +1,11 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1995/01/14 20:51:05 wollman Exp $
+# $Id: Makefile,v 1.3 1995/01/14 22:32:48 wollman Exp $
LIB= krb
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
CFLAGS+=-DKERBEROS -DCRYPT -DDEBUG -I${.CURDIR}/../include -DBSD42
-SRCS= create_auth_reply.c create_ciph.c \
+SRCS= krb_err.c create_auth_reply.c create_ciph.c \
create_death_packet.c create_ticket.c debug_decl.c decomp_ticket.c \
des_rw.c dest_tkt.c extract_ticket.c fgetst.c get_ad_tkt.c \
get_admhst.c get_cred.c get_in_tkt.c get_krbhst.c get_krbrlm.c \
@@ -20,11 +20,14 @@ SRCS= create_auth_reply.c create_ciph.c \
tkt_string.c util.c
TDIR= ${.CURDIR}/..
-krb_err.et.c: krb_err.et
- ${COMPILE_ET} ${.CURDIR}/krb_err.et
+krb_err.c krb_err.h: krb_err.et
+ test -e krb_err.et || ln -s ${.CURDIR}/krb_err.et .
+ ${COMPILE_ET} krb_err.et
-beforedepend: krb_err.et.c
-
-CLEANFILES+= krb_err.et.c krb_err.h
+beforeinstall:
+ -cd ${.OBJDIR}; cmp -s krb_err.h \
+ ${DESTDIR}/usr/include/kerberosIV/krb_err.h || \
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 krb_err.h \
+ ${DESTDIR}/usr/include/kerberosIV
.include <bsd.lib.mk>
diff --git a/eBones/lib/libkrb/Makefile b/eBones/lib/libkrb/Makefile
index f74d3dd..6314a80 100644
--- a/eBones/lib/libkrb/Makefile
+++ b/eBones/lib/libkrb/Makefile
@@ -1,11 +1,11 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1995/01/14 20:51:05 wollman Exp $
+# $Id: Makefile,v 1.3 1995/01/14 22:32:48 wollman Exp $
LIB= krb
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
CFLAGS+=-DKERBEROS -DCRYPT -DDEBUG -I${.CURDIR}/../include -DBSD42
-SRCS= create_auth_reply.c create_ciph.c \
+SRCS= krb_err.c create_auth_reply.c create_ciph.c \
create_death_packet.c create_ticket.c debug_decl.c decomp_ticket.c \
des_rw.c dest_tkt.c extract_ticket.c fgetst.c get_ad_tkt.c \
get_admhst.c get_cred.c get_in_tkt.c get_krbhst.c get_krbrlm.c \
@@ -20,11 +20,14 @@ SRCS= create_auth_reply.c create_ciph.c \
tkt_string.c util.c
TDIR= ${.CURDIR}/..
-krb_err.et.c: krb_err.et
- ${COMPILE_ET} ${.CURDIR}/krb_err.et
+krb_err.c krb_err.h: krb_err.et
+ test -e krb_err.et || ln -s ${.CURDIR}/krb_err.et .
+ ${COMPILE_ET} krb_err.et
-beforedepend: krb_err.et.c
-
-CLEANFILES+= krb_err.et.c krb_err.h
+beforeinstall:
+ -cd ${.OBJDIR}; cmp -s krb_err.h \
+ ${DESTDIR}/usr/include/kerberosIV/krb_err.h || \
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 krb_err.h \
+ ${DESTDIR}/usr/include/kerberosIV
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud