diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-16 10:24:55 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-12-16 10:24:55 +0000 |
| commit | 0fba3a00059437a62d6ac727a35ae085dd5c6ff7 (patch) | |
| tree | 95f4593b8f98a8709937a30ae24fe79be97fd509 /lib/libfetch/Makefile | |
| parent | e6799271cd44b3ab609cdd27f7242929d042c756 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/Makefile')
| -rw-r--r-- | lib/libfetch/Makefile | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile index 772a60229fac..7bd77dcb97d1 100644 --- a/lib/libfetch/Makefile +++ b/lib/libfetch/Makefile @@ -1,27 +1,25 @@ -# $Id: Makefile,v 1.8 1998/11/07 08:59:38 des Exp $ +# $Id: Makefile,v 1.9 1998/12/15 12:24:26 des Exp $ LIB= fetch CFLAGS+= -I. -Wall -pedantic .if !defined(DEBUG) CFLAGS+= -DNDEBUG .endif -SRCS= fetch.c common.c ftp.c http.c file.c fetch_err.c -DPSRCS= ftperr.inc httperr.inc fetch_err.c fetch_err.h +SRCS= fetch.c common.c ftp.c http.c file.c fetch_err.c \ + fetch_err.h ftperr.h httperr.h MAN3= fetch.3 -CLEANFILES= ${DPSRCS} +CLEANFILES= fetch_err.c fetch_err.h ftperr.h httperr.h SHLIB_MAJOR= 1 SHLIB_MINOR= 0 -beforedepend: ${DPSRCS} - -beforeinstall: fetch.h fetch_err.h +beforeinstall: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fetch.h \ ${DESTDIR}/usr/include ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 fetch_err.h \ ${DESTDIR}/usr/include -ftperr.inc: ftp.errors +ftperr.h: ftp.errors @echo "static struct fetcherr _ftp_errlist[] = {" > ${.TARGET} @cat ${.ALLSRC} \ | grep -v ^# \ @@ -32,8 +30,7 @@ ftperr.inc: ftp.errors @echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET} @echo "};" >> ${.TARGET} - -httperr.inc: http.errors +httperr.h: http.errors @echo "static struct fetcherr _http_errlist[] = {" > ${.TARGET} @cat ${.ALLSRC} \ | grep -v ^# \ @@ -44,11 +41,10 @@ httperr.inc: http.errors @echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET} @echo "};" >> ${.TARGET} +hdrs: fetch_err.h + +.ORDER: fetch_err.c fetch_err.h fetch_err.c fetch_err.h: fetch_err.et compile_et -lang c ${.ALLSRC} .include <bsd.lib.mk> - -.if !exists(${DEPENDFILE}) -${OBJS} ${POBJS} ${SOBJS}: ${DPSRCS} -.endif |
