diff options
author | njl <njl@FreeBSD.org> | 2004-04-09 07:13:27 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-04-09 07:13:27 +0000 |
commit | d7b4a9c5cadba35af80634f64b2030d3e59d0ccb (patch) | |
tree | 8e04b88a1a99ad4238dc14b58535769a368ffe65 /bin/dd | |
parent | 6c09d371b9306fe75463ad7af1b0a27ea13c8a51 (diff) | |
download | FreeBSD-src-d7b4a9c5cadba35af80634f64b2030d3e59d0ccb.zip FreeBSD-src-d7b4a9c5cadba35af80634f64b2030d3e59d0ccb.tar.gz |
Style fixes and add gen to CLEANFILES.
Submitted by: bde
Diffstat (limited to 'bin/dd')
-rw-r--r-- | bin/dd/Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/bin/dd/Makefile b/bin/dd/Makefile index 1fc5ac9..3dd185c 100644 --- a/bin/dd/Makefile +++ b/bin/dd/Makefile @@ -1,26 +1,29 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 # $FreeBSD$ -PROG= dd -SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c - MAINTAINER= green@FreeBSD.org -.include <bsd.prog.mk> +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. -test: ${PROG} - cc ${.CURDIR}/gen.c +# + +CLEANFILES= gen + +test: ${PROG} gen .for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \ pareven parnone parodd parset \ swab lcase ucase - @echo testing conv=${conv} - @./a.out | \ - /usr/bin/env -i LC_CTYPE=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \ - /usr/bin/env -i LC_CTYPE=en_US.US-ASCII hexdump -C | \ - diff -IFreeBSD - ${.CURDIR}/ref.${conv} + @${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 a.out + @rm -f gen + +.include <bsd.prog.mk> |