1996-06-17 12:26:06 +00:00
|
|
|
LIB= ftpio
|
1996-06-26 20:31:11 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -Wall
|
1996-08-21 01:12:11 +00:00
|
|
|
SRCS= ftpio.c ftperr.c
|
1996-06-17 12:26:06 +00:00
|
|
|
MAN3= ftpio.3
|
1996-08-21 01:12:11 +00:00
|
|
|
CLEANFILES+= ftperr.c
|
1996-06-17 12:26:06 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
1996-08-21 01:12:11 +00:00
|
|
|
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}
|
|
|
|
|
1996-06-17 12:26:06 +00:00
|
|
|
.include <bsd.lib.mk>
|