Deleted Added
full compact
Makefile (16781) Makefile (17732)
1LIB= ftpio
2CFLAGS+= -I${.CURDIR} -Wall
1LIB= ftpio
2CFLAGS+= -I${.CURDIR} -Wall
3SRCS= ftpio.c
3SRCS= ftpio.c ftperr.c
4MAN3= ftpio.3
4MAN3= ftpio.3
5CLEANFILES+= ftperr.c
5
6beforeinstall:
7 cd ${.CURDIR}; cmp -s ftpio.h ${DESTDIR}/usr/include/ftpio.h || \
8 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ftpio.h ${DESTDIR}/usr/include
9
6
7beforeinstall:
8 cd ${.CURDIR}; cmp -s ftpio.h ${DESTDIR}/usr/include/ftpio.h || \
9 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ftpio.h ${DESTDIR}/usr/include
10
11ftperr.c: ftp.errors
12 @echo '#include <stdio.h>' > ${.TARGET}
13 @echo '#include "ftpio.h"' >> ${.TARGET}
14 @echo "struct ftperr ftpErrList[] = {" \ >> ${.TARGET}
15 @cat ${.ALLSRC} \
16 | grep -v ^# \
17 | sort \
18 | while read NUM STRING; do \
19 echo " { $${NUM}, \"$${STRING}\" },"; \
20 done >> ${.TARGET}
21 @echo "};" >> ${.TARGET}
22 @echo -n "int const ftpErrListLength = " >> ${.TARGET}
23 @echo "sizeof(ftpErrList) / sizeof(*ftpErrList);" >> ${.TARGET}
24
10.include <bsd.lib.mk>
25.include <bsd.lib.mk>