2000-12-24 10:52:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-06-04 21:16:18 +00:00
|
|
|
TARDIR= ${.CURDIR}/../../../contrib/tar
|
|
|
|
.PATH: ${TARDIR}/lib ${TARDIR}/src
|
1993-06-18 04:22:21 +00:00
|
|
|
|
2004-02-11 05:44:20 +00:00
|
|
|
PROG= gtar
|
|
|
|
|
|
|
|
.if !defined(WITH_BSDTAR)
|
2004-06-04 00:39:46 +00:00
|
|
|
SYMLINKS= ${BINDIR}/gtar ${BINDIR}/tar
|
2004-02-11 05:44:20 +00:00
|
|
|
MLINKS= gtar.1 tar.1
|
|
|
|
.endif
|
2002-06-04 21:16:18 +00:00
|
|
|
|
2002-06-05 07:00:41 +00:00
|
|
|
SUBDIR= doc
|
2002-06-04 21:16:18 +00:00
|
|
|
|
|
|
|
# libtar SRCS
|
|
|
|
SRCS= addext.c argmatch.c backupfile.c basename.c dirname.c error.c \
|
2004-02-17 01:34:53 +00:00
|
|
|
exclude.c full-write.c getdate.c getline.c \
|
2002-06-04 21:16:18 +00:00
|
|
|
getstr.c hash.c human.c mktime.c modechange.c prepargs.c \
|
|
|
|
print-copyr.c quotearg.c safe-read.c save-cwd.c savedir.c unicodeio.c \
|
|
|
|
xgetcwd.c xmalloc.c xstrdup.c xstrtoul.c xstrtoumax.c
|
|
|
|
SRCS+= buffer.c compare.c create.c delete.c extract.c incremen.c list.c \
|
|
|
|
mangle.c misc.c names.c rtapelib.c tar.c update.c
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${TARDIR}/lib -I${TARDIR}/src
|
|
|
|
|
2004-02-11 05:44:20 +00:00
|
|
|
# "Rename" tar.1 to gtar.1 so that we can install gtar.1 with
|
|
|
|
# tar.1 as an optional link (rather than vice versa)
|
2004-03-03 17:04:49 +00:00
|
|
|
CLEANFILES= gtar.1
|
2004-02-11 05:44:20 +00:00
|
|
|
gtar.1: tar.1
|
2004-02-13 00:58:48 +00:00
|
|
|
cat ${.CURDIR}/tar.1 > ${.TARGET}
|
2004-02-11 05:44:20 +00:00
|
|
|
|
2002-06-04 21:16:18 +00:00
|
|
|
.include <bsd.prog.mk>
|