freebsd-dev/bin/dd/Makefile

30 lines
697 B
Makefile
Raw Normal View History

1994-05-26 06:18:55 +00:00
# @(#)Makefile 8.1 (Berkeley) 5/31/93
1999-08-27 23:15:48 +00:00
# $FreeBSD$
1994-05-26 06:18:55 +00:00
MAINTAINER= green@FreeBSD.org
PROG= dd
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
#
# Test the character conversion functions. We have to be explicit about
# which LC_LANG we use because the definition of upper and lower case
# depends on it.
#
CLEANFILES= gen
test: ${PROG} gen
.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
2004-03-05 19:35:51 +00:00
pareven parnone parodd parset \
swab lcase ucase
@${ECHO} testing conv=${conv}
@./gen | \
LC_ALL=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \
LC_ALL=en_US.US-ASCII hexdump -C | \
diff -I FreeBSD - ${.CURDIR}/ref.${conv}
.endfor
@rm -f gen
.include <bsd.prog.mk>