1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

cmp -s || install -c --> install -C

This commit is contained in:
Peter Wemm 1996-08-30 04:07:04 +00:00
parent f5c123203e
commit e7d24931fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17945
5 changed files with 18 additions and 26 deletions

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.1 (Berkeley) 6/25/90
# $Id$
# $Id: Makefile,v 1.7 1996/07/30 21:15:58 markm Exp $
FILES= kparse.h krb.h krb_db.h
@ -10,9 +10,9 @@ CFLAGS+= KERBEROS
all include clean cleandir depend lint tags:
beforeinstall:
-cd ${.CURDIR}; for file in ${FILES}; do \
cmp -s $$file ${DESTDIR}/usr/include/kerberosIV/$$file || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$file \
${DESTDIR}/usr/include/kerberosIV; done
.for i in ${FILES}
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/$i \
${DESTDIR}/usr/include/kerberosIV/$i
.endfor
.include <bsd.prog.mk>

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
# $Id$
# $Id: Makefile,v 1.11 1996/07/30 21:16:12 markm Exp $
LIB= kadm
@ -7,14 +7,10 @@ SRCS= kadm_err.c kadm_stream.c kadm_supp.c kadm_cli_wrap.c
CFLAGS+= -I. -I${.CURDIR} -I${KRBOBJDIR} -DPOSIX -DKERBEROS
beforeinstall: kadm_err.c
-cd ${.CURDIR}; cmp -s kadm.h \
${DESTDIR}/usr/include/kerberosIV/kadm.h || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 kadm.h \
${DESTDIR}/usr/include/kerberosIV
-cd ${.OBJDIR}; cmp -s kadm_err.h \
${DESTDIR}/usr/include/kerberosIV/kadm_err.h || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 kadm_err.h \
${DESTDIR}/usr/include/kerberosIV
.for i in kadm.h kadm_err.h
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/$i \
${DESTDIR}/usr/include/kerberosIV/$i
.endfor
.include <bsd.lib.mk>

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
# $Id: Makefile,v 1.12 1995/11/12 08:13:21 markm Exp $
# $Id: Makefile,v 1.13 1996/06/24 04:22:27 jkh Exp $
LIB= krb
SHLIB_MINOR= 1
@ -21,9 +21,7 @@ SRCS= krb_err.c create_auth_reply.c create_ciph.c \
LDADD+= -lcom_err
beforeinstall: krb_err.c
-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 \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 krb_err.h \
${DESTDIR}/usr/include/kerberosIV
MAN3= krb.3 krb_realmofhost.3 krb_sendauth.3 krb_set_tkt_string.3 \

View File

@ -7,9 +7,7 @@ SRCS= rkinit_err.c rk_lib.c rk_rpc.c rk_util.c rk_krb.c
LDADD+= -lcom_err
beforeinstall:
-cd ${.OBJDIR}; cmp -s rkinit_err.h \
${DESTDIR}/usr/include/kerberosIV/rkinit_err.h || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 rkinit_err.h \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 rkinit_err.h \
${DESTDIR}/usr/include/kerberosIV
MAN3= rkinit.3

View File

@ -1,5 +1,5 @@
# @(#)Makefile 5.4 (Berkeley) 5/7/91
# $Id: Makefile,v 1.2 1996/07/27 22:16:19 jkh Exp $
# $Id: Makefile,v 1.3 1996/07/29 18:01:39 markm Exp $
LIB= des
SRCS= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
@ -33,9 +33,9 @@ MLINKS= des_crypt.3 des_read_password.3 \
des_crypt.3 des_set_odd_parity.3 des_crypt.3 des_is_weak_key.3
beforeinstall:
-cd ${.CURDIR}; for file in ${HEADER}; do \
cmp -s $$file ${DESTDIR}/usr/include/$$file || \
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$file \
${DESTDIR}/usr/include; done
.for i in ${HEADER}
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/$i \
${DESTDIR}/usr/include
.endfor
.include <bsd.lib.mk>