diff options
author | jkh <jkh@FreeBSD.org> | 1996-08-21 01:12:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-08-21 01:12:11 +0000 |
commit | fc1487cdb0526da63e7c8dbf92b1bcf3e66d356c (patch) | |
tree | d73ecb14dd9b2627668e78e4f23d5fb3178ac09d /lib/libftpio/Makefile | |
parent | bf3127c24bb5de8cab749074a2c4004f51bdc0c5 (diff) | |
download | FreeBSD-src-fc1487cdb0526da63e7c8dbf92b1bcf3e66d356c.zip FreeBSD-src-fc1487cdb0526da63e7c8dbf92b1bcf3e66d356c.tar.gz |
Add an ftpErrString() function for returning human readable failure
codes.
Submitted-By: Archie Cobbs <archie@whistle.com>
Diffstat (limited to 'lib/libftpio/Makefile')
-rw-r--r-- | lib/libftpio/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libftpio/Makefile b/lib/libftpio/Makefile index fc46bf6..d7254d3 100644 --- a/lib/libftpio/Makefile +++ b/lib/libftpio/Makefile @@ -1,10 +1,25 @@ LIB= ftpio CFLAGS+= -I${.CURDIR} -Wall -SRCS= ftpio.c +SRCS= ftpio.c ftperr.c MAN3= ftpio.3 +CLEANFILES+= ftperr.c beforeinstall: cd ${.CURDIR}; cmp -s ftpio.h ${DESTDIR}/usr/include/ftpio.h || \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ftpio.h ${DESTDIR}/usr/include +ftperr.c: ftp.errors + @echo '#include <stdio.h>' > ${.TARGET} + @echo '#include "ftpio.h"' >> ${.TARGET} + @echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET} + @cat ${.ALLSRC} \ + | grep -v ^# \ + | sort \ + | while read NUM STRING; do \ + echo " { $${NUM}, \"$${STRING}\" },"; \ + done >> ${.TARGET} + @echo "};" >> ${.TARGET} + @echo -n "int const ftpErrListLength = " >> ${.TARGET} + @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET} + .include <bsd.lib.mk> |