cmp -s || install -c -> install -C
This commit is contained in:
parent
98e01bb564
commit
f5c123203e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17944
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.1 1994/11/08 00:47:02 ache Exp $
|
||||
# $Id: Makefile,v 1.2 1995/08/06 12:22:38 bde Exp $
|
||||
#
|
||||
all depend lint tags:
|
||||
|
||||
@ -6,11 +6,10 @@ FILES= values.h
|
||||
NOOBJ= noobj
|
||||
|
||||
beforeinstall:
|
||||
@${ECHO} installing ${FILES}
|
||||
@-for i in ${FILES}; do \
|
||||
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
||||
${DESTDIR}/usr/include/$$i; \
|
||||
done
|
||||
.for i in ${FILES}
|
||||
cd ${.CURDIR} ; \
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $i \
|
||||
${DESTDIR}/usr/include/$i
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user