Makefile (174588) | Makefile (174767) |
---|---|
1# $FreeBSD: head/lib/libfetch/Makefile 174588 2007-12-14 10:26:58Z des $ | 1# $FreeBSD: head/lib/libfetch/Makefile 174767 2007-12-19 05:10:07Z ru $ |
2 3.include <bsd.own.mk> 4 5LIB= fetch 6CFLAGS+= -I. 7SRCS= fetch.c common.c ftp.c http.c file.c \ 8 ftperr.h httperr.h 9INCS= fetch.h --- 12 unchanged lines hidden (view full) --- 22 23CFLAGS+= -DFTP_COMBINE_CWDS 24 25CSTD?= c99 26WARNS?= 2 27 28SHLIB_MAJOR= 5 29 | 2 3.include <bsd.own.mk> 4 5LIB= fetch 6CFLAGS+= -I. 7SRCS= fetch.c common.c ftp.c http.c file.c \ 8 ftperr.h httperr.h 9INCS= fetch.h --- 12 unchanged lines hidden (view full) --- 22 23CFLAGS+= -DFTP_COMBINE_CWDS 24 25CSTD?= c99 26WARNS?= 2 27 28SHLIB_MAJOR= 5 29 |
30ftperr.h: ftp.errors | 30ftperr.h: ftp.errors ${.CURDIR}/Makefile |
31 @echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET} | 31 @echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET} |
32 @cat ${.ALLSRC} \ | 32 @cat ${.CURDIR}/ftp.errors \ |
33 | grep -v ^# \ 34 | sort \ 35 | while read NUM CAT STRING; do \ 36 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 37 done >> ${.TARGET} 38 @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET} 39 @echo "};" >> ${.TARGET} 40 | 33 | grep -v ^# \ 34 | sort \ 35 | while read NUM CAT STRING; do \ 36 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 37 done >> ${.TARGET} 38 @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET} 39 @echo "};" >> ${.TARGET} 40 |
41httperr.h: http.errors | 41httperr.h: http.errors ${.CURDIR}/Makefile |
42 @echo "static struct fetcherr http_errlist[] = {" > ${.TARGET} | 42 @echo "static struct fetcherr http_errlist[] = {" > ${.TARGET} |
43 @cat ${.ALLSRC} \ | 43 @cat ${.CURDIR}/http.errors \ |
44 | grep -v ^# \ 45 | sort \ 46 | while read NUM CAT STRING; do \ 47 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 48 done >> ${.TARGET} 49 @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET} 50 @echo "};" >> ${.TARGET} 51 --- 30 unchanged lines hidden --- | 44 | grep -v ^# \ 45 | sort \ 46 | while read NUM CAT STRING; do \ 47 echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \ 48 done >> ${.TARGET} 49 @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET} 50 @echo "};" >> ${.TARGET} 51 --- 30 unchanged lines hidden --- |