cmp -s || install -c ==> install -C
This commit is contained in:
parent
b7e5f46aed
commit
c5c878699b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17930
@ -3,13 +3,13 @@
|
|||||||
# stdio sources
|
# stdio sources
|
||||||
.PATH: ${.CURDIR}/../libc/stdio
|
.PATH: ${.CURDIR}/../libc/stdio
|
||||||
|
|
||||||
SRCS+= clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c fgetc.c \
|
SRCS+= asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \
|
||||||
fgetln.c fgetpos.c fgets.c fileno.c findfp.c flags.c fopen.c \
|
fgetc.c fgetln.c fgetpos.c fgets.c fileno.c findfp.c flags.c fopen.c \
|
||||||
fprintf.c fpurge.c fputc.c fputs.c fread.c freopen.c fscanf.c \
|
fprintf.c fpurge.c fputc.c fputs.c fread.c freopen.c fscanf.c \
|
||||||
fseek.c fsetpos.c ftell.c funopen.c fvwrite.c fwalk.c fwrite.c \
|
fseek.c fsetpos.c ftell.c funopen.c fvwrite.c fwalk.c fwrite.c \
|
||||||
getc.c getchar.c gets.c getw.c makebuf.c mktemp.c perror.c \
|
getc.c getchar.c gets.c getw.c makebuf.c mktemp.c perror.c \
|
||||||
printf.c putc.c putchar.c puts.c putw.c refill.c remove.c rewind.c \
|
printf.c putc.c putchar.c puts.c putw.c refill.c remove.c rewind.c \
|
||||||
rget.c scanf.c setbuf.c setbuffer.c setvbuf.c snprintf.c sprintf.c \
|
rget.c scanf.c setbuf.c setbuffer.c setvbuf.c snprintf.c sprintf.c \
|
||||||
sscanf.c stdio.c tempnam.c tmpfile.c tmpnam.c ungetc.c vfprintf.c \
|
sscanf.c stdio.c tempnam.c tmpfile.c tmpnam.c ungetc.c vasprintf.c \
|
||||||
vfscanf.c vprintf.c vscanf.c vsnprintf.c vsprintf.c vsscanf.c \
|
vfprintf.c vfscanf.c vprintf.c vscanf.c vsnprintf.c vsprintf.c \
|
||||||
wbuf.c wsetup.c
|
vsscanf.c wbuf.c wsetup.c
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.1.1.1 1995/01/14 22:23:41 wollman Exp $
|
# $Id: Makefile,v 1.2 1995/08/06 12:23:28 bde Exp $
|
||||||
|
|
||||||
LIB= com_err
|
LIB= com_err
|
||||||
SRCS= com_err.c error_message.c et_name.c init_et.c
|
SRCS= com_err.c error_message.c et_name.c init_et.c
|
||||||
@ -8,8 +8,7 @@ MAN3= com_err.3
|
|||||||
SUBDIR= doc
|
SUBDIR= doc
|
||||||
|
|
||||||
beforeinstall:
|
beforeinstall:
|
||||||
-cd ${.CURDIR}; cmp -s com_err.h ${DESTDIR}/usr/include/com_err.h || \
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/com_err.h \
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 com_err.h \
|
|
||||||
${DESTDIR}/usr/include
|
${DESTDIR}/usr/include
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# From: @(#)Makefile 8.2 (Berkeley) 1/2/94
|
# From: @(#)Makefile 8.2 (Berkeley) 1/2/94
|
||||||
# $Id: Makefile,v 1.5 1995/03/19 21:47:42 nate Exp $
|
# $Id: Makefile,v 1.6 1995/08/06 12:23:33 bde Exp $
|
||||||
|
|
||||||
CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
|
CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
|
||||||
CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
|
CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
|
||||||
@ -15,8 +15,7 @@ SRCS= addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \
|
|||||||
MAN3= curses.3
|
MAN3= curses.3
|
||||||
|
|
||||||
beforeinstall:
|
beforeinstall:
|
||||||
-cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h || \
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/curses.h \
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \
|
|
||||||
${DESTDIR}/usr/include
|
${DESTDIR}/usr/include
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.15 1996/05/07 23:18:43 wosch Exp $
|
# $Id: Makefile,v 1.16 1996/06/23 13:11:51 bde Exp $
|
||||||
|
|
||||||
LIB= disk
|
LIB= disk
|
||||||
SRCS= blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
|
SRCS= blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
|
||||||
@ -51,10 +51,7 @@ data.c: ${.CURDIR}/libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
|
|||||||
mv -f tmp.c data.c
|
mv -f tmp.c data.c
|
||||||
|
|
||||||
beforeinstall:
|
beforeinstall:
|
||||||
@${ECHO} installing libdisk.h
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libdisk.h \
|
||||||
@cd ${.CURDIR}; \
|
|
||||||
cmp -s libdisk.h ${DESTDIR}/usr/include/libdisk.h || \
|
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 libdisk.h \
|
|
||||||
${DESTDIR}/usr/include/libdisk.h
|
${DESTDIR}/usr/include/libdisk.h
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ MAN3= ftpio.3
|
|||||||
CLEANFILES+= ftperr.c
|
CLEANFILES+= ftperr.c
|
||||||
|
|
||||||
beforeinstall:
|
beforeinstall:
|
||||||
cd ${.CURDIR}; cmp -s ftpio.h ${DESTDIR}/usr/include/ftpio.h || \
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ftpio.h \
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ftpio.h ${DESTDIR}/usr/include
|
${DESTDIR}/usr/include
|
||||||
|
|
||||||
ftperr.c: ftp.errors
|
ftperr.c: ftp.errors
|
||||||
@echo '#include <stdio.h>' > ${.TARGET}
|
@echo '#include <stdio.h>' > ${.TARGET}
|
||||||
|
Loading…
Reference in New Issue
Block a user