Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2015 09:43:55 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Carsten Kunze <carsten.kunze@arcor.de>
Cc:        <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: make .SUFFIXES bug?
Message-ID:  <27614.1450201435@chaos>
In-Reply-To: <958008149.499994.1450191701294.JavaMail.ngmail@webmail08.arcor-online.net>
References:  <958008149.499994.1450191701294.JavaMail.ngmail@webmail08.arcor-online.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Carsten Kunze <carsten.kunze@arcor.de> wrote:

> current groff doesn't build on FreeBSD.  I had noticed the same issue
> some months ago on NetBSD and cross checked on FreeBSD and it had
> worked on FreeBSD.  There must have somethig changed since then.  How
> to reproduce:

FreeBSD now uses same make as NetBSD ;-)

> When there is a file "test.1.man" and a makefile:
> =

> .SUFFIXES:
> .SUFFIXES: .roff .in .ps .mom .pdf .me .ms .ps .html .txt .texi .dvi .pd=
f .xhtml .man .c .cpp .log .o .obj .sed .sin .test .test$(EXEEXT) .trs .yp=
p

What is the value of EXEEXT at this point?

> .man:
>         @echo Making $@ from $<
>         rm -f $@
>         @LC_ALL=3DC \
>          sed -e "s|foo|bar|g" \
>          $< >$@
> =

> "make test.1" results in "make: don't know how to make test.1. Stop".
> =

> When ".man" is put to the start of the list it works.  It also works
> when the first .SUFFIXES line is removed.
> =

> The answer from NetBSD is that this is very likely a bug in make.  May
> this also be the case for FreeBSD?

Since the make is the same, the answer would be yes.
But it may not be a bug in make itself:

$ echo hi > test.1.man
$ make -r -f /homes/sjg/make-tests/suffix2 test.1
Making test.1 from test.1.man
$ make  -f /homes/sjg/make-tests/suffix2 test.1
make: don't know how to make test.1. Stop

make: stopped in /tmp
$

Will look deeper...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27614.1450201435>