diff --git a/gnu/usr.bin/groff/Makefile.cfg b/gnu/usr.bin/groff/Makefile.cfg index 37b627cac19c..23f2b1c5d58a 100644 --- a/gnu/usr.bin/groff/Makefile.cfg +++ b/gnu/usr.bin/groff/Makefile.cfg @@ -122,3 +122,8 @@ CFLAGS+=$(DEFINES) -e "s;@g@;$(g);g" \ -e "s;@G@;`echo $(g) | tr [a-z] [A-Z]`;g" \ $< >$@ + +.if exists(${.CURDIR}/obj) +MANSRC=${.CURDIR}/obj +.endif + diff --git a/gnu/usr.bin/groff/man/Makefile b/gnu/usr.bin/groff/man/Makefile index 4cb2ea774bd2..4723c0aae82b 100644 --- a/gnu/usr.bin/groff/man/Makefile +++ b/gnu/usr.bin/groff/man/Makefile @@ -6,9 +6,5 @@ MAN7= groff_char.7 MANDEPEND= ${MAN5} ${MAN7} CLEANFILES+= ${MANDEPEND} -.if exists(${.CURDIR}/obj) -MANSRC=${.CURDIR}/obj -.endif - .include "../Makefile.cfg" .include