gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc47 / gcov / Makefile
index 71b22a5..c063d3b 100644 (file)
@@ -1,18 +1,19 @@
 .include "../Makefile.langs"
+.include "../../Makefile.cco"
 
 PROG=  gcov
-MAN=   gcov${GCCSHORTVER}.1
-MLINKS=        gcov${GCCSHORTVER}.1 gcov.1
-
-.if ${GCCDOCSUFFIX} != ${GCCSHORTVER}
-MLINKS+=gcov${GCCSHORTVER}.1 gcov${GCCDOCSUFFIX}.1
-.endif
+MFILE= gcov${MANPAGEVER}.1
+MAN=   ${MFILE}
 
 SRCS=  gcov.c
 
-gcov${GCCSHORTVER}.1: ${GCCDIR}/gcc/doc/gcov.1
+${MFILE}: ${GCCDIR}/gcc/doc/gcov.1
        cp ${.ALLSRC} ${.TARGET}
 
-CLEANFILES+=   gcov${GCCSHORTVER}.1
+CLEANFILES+=   ${MFILE}
+
+.if defined(IS_PRIMARY)
+MLINKS+= ${MFILE} gcov.1
+.endif
 
 .include <bsd.prog.mk>