diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-08-17 20:39:09 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-08-17 20:39:09 +0000 |
| commit | 90152d9d21047fdc1df16297724d381f054576e1 (patch) | |
| tree | a95caa897cc971e93ac41c96e36f16daedbf4177 /lib/libfetch | |
| parent | 450e9e37dc67622c38b591b9095eb32a9624e62b (diff) | |
Notes
Diffstat (limited to 'lib/libfetch')
| -rw-r--r-- | lib/libfetch/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libfetch/Makefile b/lib/libfetch/Makefile index 91bbe1d38e24..2afd8bbb623d 100644 --- a/lib/libfetch/Makefile +++ b/lib/libfetch/Makefile @@ -1,17 +1,21 @@ +# $Id$ + LIB= fetch -CFLAGS+= -I${.CURDIR} -Wall -pedantic -DNDEBUG +CFLAGS+= -I. -Wall -pedantic -DNDEBUG SRCS= fetch.c ftp.c http.c file.c +DPSRCS= ftperr.c httperr.c MAN3= fetch.3 -CLEANFILES+= ftperr.c httperr.c +CLEANFILES= ${DPSRCS} SHLIB_MAJOR= 1 SHLIB_MINOR= 0 +beforedepend: ${DPSRCS} + beforeinstall: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fetch.h \ ${DESTDIR}/usr/include -ftp.c: ftperr.c ftperr.c: ftp.errors @echo "struct ftperr {" \ > ${.TARGET} @echo " const int num;" \ >> ${.TARGET} @@ -27,7 +31,6 @@ ftperr.c: ftp.errors @echo " { -1, \"Unknown FTP error\" }" >> ${.TARGET} @echo "};" >> ${.TARGET} -http.c: httperr.c httperr.c: http.errors @echo "struct httperr {" \ > ${.TARGET} @echo " const int num;" \ >> ${.TARGET} @@ -44,3 +47,7 @@ httperr.c: http.errors @echo "};" >> ${.TARGET} .include <bsd.lib.mk> + +.if !exists(${DEPENDFILE}) +${OBJS} ${POBJS} ${SOBJS}: ${DPSRCS} +.endif |
