summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/Makefile
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-12-16 10:24:55 +0000
committerdes <des@FreeBSD.org>1998-12-16 10:24:55 +0000
commit37f6ae6efa76ffd76030b285155c142929e27e71 (patch)
tree46bd30e5ec6a8aa52bcbef848e3726d299305880 /lib/libfetch/Makefile
parent0dfe97f554b9685389c9e58615db7e9453368503 (diff)
downloadFreeBSD-src-37f6ae6efa76ffd76030b285155c142929e27e71.zip
FreeBSD-src-37f6ae6efa76ffd76030b285155c142929e27e71.tar.gz
Add verbose flag, and support functions.
Brucify the Makefile. Differentiate atime and mtime in fetch*Stat(). Fix a few pointer bugs. Tweak some error messages. Don't #include sys/param.h and stdio.h in fetch.h. Document that sys/param.h and stdio.h must be #included before fetch.h.
Diffstat (limited to 'lib/libfetch/Makefile')
-rw-r--r--lib/libfetch/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile
index 772a602..7bd77dc 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
OpenPOWER on IntegriCloud