Install GNU cpio as 'gcpio', symlink to 'cpio' unless WITH_BSDCPIO is
defined.
This commit is contained in:
parent
4d6b2b93cb
commit
e761102df3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179325
@ -5,7 +5,7 @@ CPIODIR= ${.CURDIR}/../../../contrib/cpio
|
||||
|
||||
SUBDIR= doc
|
||||
|
||||
PROG= cpio
|
||||
PROG= gcpio
|
||||
SRCS= copyin.c \
|
||||
copyout.c \
|
||||
copypass.c \
|
||||
@ -59,4 +59,12 @@ alloca.h: alloca_.h
|
||||
CFLAGS+=-I${.OBJDIR} -I${.CURDIR} -I${CPIODIR}/lib -DHAVE_CONFIG_H \
|
||||
-DHAVE_MKFIFO -DHAVE_SETLOCALE -DHAVE_LSTAT
|
||||
|
||||
gcpio.1: ${CPIODIR}/doc/cpio.1
|
||||
cat ${CPIODIR}/doc/cpio.1 >gcpio.1
|
||||
|
||||
.if !defined(WITH_BSDCPIO)
|
||||
SYMLINKS=gcpio ${BINDIR}/cpio
|
||||
MLINKS=gcpio.1 cpio.1
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user