Date: Fri, 29 May 1998 18:14:12 +0200 From: Arne H Juul <arnej+freebsd@stud.math.ntnu.no> To: freebsd-hackers@FreeBSD.ORG Subject: MANDEPEND Message-ID: <199805291614.JAA02447@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
What is the MANDEPEND macro in the system makefiles supposed to
do and be used for? I've tried to trace through the makefiles
that use it and bsd.man.mk/bsd.prog.mk etc and still I can't see
any case where it will make a difference - the contents of the
macro are always present in the targets they should be anyway.
Just to see if I was missing something I tried removing it and
it didn't cause any problems for me at least, neither when doing
"make" nor "make install" nor "make clean". (I've appended the
patch for -current, in case others want to test it, though most
of my testing has been done on my RELENG_2_2 build machine).
Maybe it's just historical now?
- Arne H. J.
Index: src/gnu/usr.bin/groff/addftinfo/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/addftinfo/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 1996/09/08 01:27:15 1.4
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,7 @@
LDADD+= ${LIBGROFF}
DPADD+= ${LIBGROFF}
-MANDEPEND= addftinfo.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= addftinfo.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/grodvi/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/grodvi/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:34 1.5
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,7 @@
LDADD+= ${LIBDRIVER} ${LIBGROFF} -lm
DPADD+= ${LIBDRIVER} ${LIBGROFF} ${LIBM}
-MANDEPEND= grodvi.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= grodvi.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/groff/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/groff/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:35 1.5
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,5 @@
LDADD+= ${LIBGROFF} -lm
DPADD+= ${LIBGROFF} ${LIBM}
-MANDEPEND= groff.1
-CLEANFILES+= ${MANDEPEND}
-
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/grolj4/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/grolj4/Makefile,v
retrieving revision 2.1.1.1
diff -u -r2.1.1.1 Makefile
--- Makefile 1996/09/08 01:21:15 2.1.1.1
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,7 @@
LDADD+= ${LIBDRIVER} ${LIBGROFF} -lm
DPADD+= ${LIBDRIVER} ${LIBGROFF} ${LIBM}
-MANDEPEND= grolj4.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= grolj4.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/grops/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/grops/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:36 1.5
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,7 @@
LDADD+= ${LIBDRIVER} ${LIBGROFF} -lm
DPADD+= ${LIBDRIVER} ${LIBGROFF} ${LIBM}
-MANDEPEND= grops.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= grops.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/grotty/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/grotty/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:37 1.5
+++ Makefile 1998/05/27 15:04:25
@@ -6,8 +6,7 @@
LDADD+= ${LIBDRIVER} ${LIBGROFF} -lm
DPADD+= ${LIBDRIVER} ${LIBGROFF} ${LIBM}
-MANDEPEND= grotty.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= grotty.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/indxbib/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/indxbib/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile 1997/03/09 07:27:18 1.8
+++ Makefile 1998/05/27 15:04:26
@@ -6,8 +6,7 @@
LDADD+= ${LIBBIB} ${LIBGROFF} -lm
DPADD+= ${LIBBIB} ${LIBGROFF} ${LIBM}
-MANDEPEND= indxbib.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= indxbib.1
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
Index: src/gnu/usr.bin/groff/lkbib/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/lkbib/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:43 1.5
+++ Makefile 1998/05/27 15:04:26
@@ -6,8 +6,7 @@
LDADD+= ${LIBBIB} ${LIBGROFF} -lm
DPADD+= ${LIBBIB} ${LIBGROFF} ${LIBM}
-MANDEPEND= lkbib.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= lkbib.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/lookbib/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/lookbib/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:44 1.5
+++ Makefile 1998/05/27 15:04:26
@@ -6,8 +6,7 @@
LDADD+= $(LIBBIB) $(LIBGROFF) -lm
DPADD+= $(LIBBIB) $(LIBGROFF) $(LIBM)
-MANDEPEND= lookbib.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= lookbib.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/man/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/man/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:46 1.5
+++ Makefile 1998/05/27 15:04:26
@@ -3,8 +3,7 @@
MAN5= groff_font.5 groff_out.5
MAN7= groff_char.7
-MANDEPEND= ${MAN5} ${MAN7}
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= ${MAN5} ${MAN7}
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/mm/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/mm/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile 1997/12/17 12:04:49 1.9
+++ Makefile 1998/05/27 15:04:26
@@ -9,8 +9,7 @@
MAN7= groff_mm.7 groff_mmse.7
MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
-MANDEPEND= ${MAN7}
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= ${MAN7}
beforeinstall:
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
Index: src/gnu/usr.bin/groff/nroff/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/nroff/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 1997/09/15 16:08:56 1.7
+++ Makefile 1998/05/27 15:04:26
@@ -1,7 +1,6 @@
MAN1= nroff.1 psroff.1
-MANDEPEND= nroff.1 psroff.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= ${MAN1}
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
Index: src/gnu/usr.bin/groff/pfbtops/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/pfbtops/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 1996/09/08 01:27:49 1.4
+++ Makefile 1998/05/27 15:04:26
@@ -5,8 +5,7 @@
LDADD+= ${LIBGROFF}
DPADD+= ${LIBGROFF}
-MANDEPEND= pfbtops.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= pfbtops.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/psbb/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/psbb/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 1996/09/08 01:27:51 1.4
+++ Makefile 1998/05/27 15:04:26
@@ -3,8 +3,7 @@
PROG= psbb
SRCS= psbb.c
-MANDEPEND= psbb.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= psbb.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/tbl/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/tbl/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:53 1.5
+++ Makefile 1998/05/27 15:04:26
@@ -6,8 +6,7 @@
LDADD+= ${LIBGROFF} -lm
DPADD+= ${LIBGROFF} ${LIBM}
-MANDEPEND= tbl.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= tbl.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/tfmtodit/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/tfmtodit/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 1996/09/08 01:27:55 1.5
+++ Makefile 1998/05/27 15:04:26
@@ -6,8 +6,7 @@
LDADD+= ${LIBGROFF} -lm
DPADD+= ${LIBGROFF} ${LIBM}
-MANDEPEND= tfmtodit.1
-CLEANFILES+= ${MANDEPEND}
+CLEANFILES+= tfmtodit.1
.include "../Makefile.cfg"
.include <bsd.prog.mk>
Index: src/gnu/usr.bin/groff/troff/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/groff/troff/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile 1997/08/23 05:26:32 1.9
+++ Makefile 1998/05/27 15:04:27
@@ -6,9 +6,8 @@
CFLAGS+= -I${.CURDIR}/../include
LDADD+= ${LIBGROFF} -lm
DPADD+= ${LIBGROFF} ${LIBM}
-MANDEPEND= troff.1
-CLEANFILES+= majorminor.cc ${MANDEPEND}
+CLEANFILES+= majorminor.cc troff.1
.include "../Makefile.inc"
Index: src/gnu/usr.bin/man/man/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/man/man/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- Makefile 1998/03/07 09:45:56 1.24
+++ Makefile 1998/05/27 15:04:27
@@ -11,8 +11,8 @@
CFLAGS+= -I${.CURDIR}/../lib -DSTDC_HEADERS -DPOSIX -DHAS_TROFF
CFLAGS+= -DDO_COMPRESS -DALT_SYSTEMS -DSETREUID -DCATMODE=0644
+
CLEANFILES+= ${MAN1}
-MANDEPEND+= ${MAN1}
.PATH: ${.CURDIR}/../manpath
Index: src/gnu/usr.bin/man/manpath/Makefile
===================================================================
RCS file: /usr/cvs/src/gnu/usr.bin/man/manpath/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile 1998/03/07 09:45:58 1.19
+++ Makefile 1998/05/27 15:04:27
@@ -7,8 +7,8 @@
CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
+
CLEANFILES+= ${MAN1}
-MANDEPEND+= ${MAN1}
${MAN1}: ${.CURDIR}/manpath.man
@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
Index: src/libexec/atrun/Makefile
===================================================================
RCS file: /usr/cvs/src/libexec/atrun/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 1997/02/22 14:20:54 1.6
+++ Makefile 1998/05/27 15:04:27
@@ -11,7 +11,6 @@
BINDIR= $(ATLIB_DIR)
MANSRC= .
CLEANFILES += ${MAN8}
-MANDEPEND = ${MAN8}
CFLAGS+= -I$(MAINSRC) -I${.CURDIR}
Index: src/libexec/talkd/announce.c
===================================================================
RCS file: /usr/cvs/src/libexec/talkd/announce.c,v
retrieving revision 1.9
diff -u -r1.9 announce.c
--- announce.c 1997/12/02 12:33:11 1.9
+++ announce.c 1998/04/18 08:22:24
@@ -58,6 +58,7 @@
#include <vis.h>
extern char hostname[];
+extern char *ttymsg();
int print_mesg __P((char *, FILE *, CTL_MSG *, char *));
char *ttymsg __P((struct iovec *, int, char *, int));
Index: src/sbin/ifconfig/ifconfig.c
===================================================================
RCS file: /usr/cvs/src/sbin/ifconfig/ifconfig.c,v
retrieving revision 1.35
diff -u -r1.35 ifconfig.c
--- ifconfig.c 1998/03/19 20:58:45 1.35
+++ ifconfig.c 1998/04/18 08:46:23
@@ -558,7 +558,7 @@
if (afp->af_ridreq == NULL || afp->af_difaddr == 0) {
warnx("interface %s cannot change %s addresses!",
name, afp->af_name);
- clearaddr = NULL;
+ clearaddr = 0;
}
}
if (clearaddr) {
@@ -575,7 +575,7 @@
if (afp->af_ridreq == NULL || afp->af_difaddr == 0) {
warnx("interface %s cannot change %s addresses!",
name, afp->af_name);
- newaddr = NULL;
+ newaddr = 0;
}
}
if (newaddr) {
Index: src/sbin/mount/mount.c
===================================================================
RCS file: /usr/cvs/src/sbin/mount/mount.c,v
retrieving revision 1.26
diff -u -r1.26 mount.c
--- mount.c 1998/05/17 21:57:17 1.26
+++ mount.c 1998/05/19 16:40:55
@@ -100,7 +100,7 @@
{ MNT_NOCLUSTERW, "noclusterw" },
{ MNT_SUIDDIR, "suiddir" },
{ MNT_SOFTDEP, "soft-updates" },
- { NULL }
+ { 0, NULL }
};
/*
Index: src/share/mk/bsd.man.mk
===================================================================
RCS file: /usr/cvs/src/share/mk/bsd.man.mk,v
retrieving revision 1.27
diff -u -r1.27 bsd.man.mk
--- bsd.man.mk 1998/04/27 15:08:07 1.27
+++ bsd.man.mk 1998/05/27 15:04:27
@@ -73,9 +73,9 @@
.endif
.endfor
-# XXX MANDEPEND is only used for groff, man/man, man/manpath, at and atrun.
-# It should be named more generally.
-all-man: ${MANDEPEND}
+# XXX What was MANDEPEND supposed to be used for?
+# all-man: ${MANDEPEND}
+all-man:
.if defined(NOMANCOMPRESS)
Index: src/usr.bin/at/Makefile
===================================================================
RCS file: /usr/cvs/src/usr.bin/at/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 1997/02/22 19:54:03 1.6
+++ Makefile 1998/05/27 15:04:31
@@ -15,7 +15,6 @@
BINMODE= 4555
MANSRC= .
CLEANFILES += ${MAN1}
-MANDEPEND = ${MAN1}
.include <bsd.prog.mk>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805291614.JAA02447>
