# Makefile: Another "make" command is used when going into SUBDIR perl

3 messages from 2014-04-05 to 2014-04-08. Participants: Bjarni Ingi Gislason, René Scharfe.
Thread: https://gitlist.dev/t/36353

## Bjarni Ingi Gislason, 2014-04-05 23:10

Subject: Makefile: Another "make" command is used when going into SUBDIR perl
Message-ID: <20140405231039.GA26578@rhi.hi.is>
URL: https://gitlist.dev/e/20140405231039.GA26578%40rhi.hi.is

```
Package: git-1.9.0

  Another make command is used in the Makefile when it enters subdir
PERL.

  The used "make" command is a link in my home directory to
"/usr/sfw/bin/gmake".  Other make commands are "/usr/ccs/bin/make" and
"/usr/xpg4/bin/make".

My PATH variable has these directories in this order

$HOME, /usr/sfw/bin, /usr/xpg4/bin and /usr/ccs/bin

  The used variables for make are

CPPFLAGS=-I/usr/local/ssl/include
NO_GETTEXT=YesPlease
NO_TCLTK=YesPlease

  Last part of compilation:

    * new script parameters
    GEN git-am
    GEN git-bisect
    GEN git-difftool--helper
    GEN git-filter-branch
    GEN git-merge-octopus
    GEN git-merge-one-file
    GEN git-merge-resolve
    GEN git-mergetool
    GEN git-pull
    GEN git-quiltimport
    GEN git-rebase
    GEN git-request-pull
    GEN git-stash
    GEN git-submodule
    GEN git-web--browse
    GEN perl/PM.stamp
    SUBDIR perl
make: Warning: Ignoring DistributedMake -o option
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
             [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
             [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro +=value"... ]
make: Fatal error: Unknown option `-C'
make: *** [perl/perl.mak] Error 1

  The error comes from "/usr/ccs/bin/make" or "/usr/xpg4/bin/make".

```

## René Scharfe, 2014-04-06 14:33

Subject: Re: Makefile: Another "make" command is used when going into SUBDIR perl
Message-ID: <534165AD.3040606@web.de>
URL: https://gitlist.dev/e/534165AD.3040606%40web.de
In-Reply-To: <20140405231039.GA26578@rhi.hi.is>

```
Am 06.04.2014 01:10, schrieb Bjarni Ingi Gislason:
> Package: git-1.9.0
>
>    Another make command is used in the Makefile when it enters subdir
> PERL.
>
>    The used "make" command is a link in my home directory to
> "/usr/sfw/bin/gmake".  Other make commands are "/usr/ccs/bin/make" and
> "/usr/xpg4/bin/make".
>
> My PATH variable has these directories in this order
>
> $HOME, /usr/sfw/bin, /usr/xpg4/bin and /usr/ccs/bin
>
>    The used variables for make are
>
> CPPFLAGS=-I/usr/local/ssl/include
> NO_GETTEXT=YesPlease
> NO_TCLTK=YesPlease

Try adding "MAKE = /usr/sfw/bin/gmake".

René

```

## Bjarni Ingi Gislason, 2014-04-08 23:34

Subject: Re: Makefile: Another "make" command is used when going into SUBDIR perl
Message-ID: <20140408233449.GA21148@rhi.hi.is>
URL: https://gitlist.dev/e/20140408233449.GA21148%40rhi.hi.is
In-Reply-To: <534165AD.3040606@web.de>

```
On Sun, Apr 06, 2014 at 04:33:17PM +0200, René Scharfe wrote:
> Am 06.04.2014 01:10, schrieb Bjarni Ingi Gislason:
> >Package: git-1.9.0
> >
> >   Another make command is used in the Makefile when it enters subdir
> >PERL.
> >
> >   The used "make" command is a link in my home directory to
> >"/usr/sfw/bin/gmake".  Other make commands are "/usr/ccs/bin/make" and
> >"/usr/xpg4/bin/make".
> >
> >My PATH variable has these directories in this order
> >
> >$HOME, /usr/sfw/bin, /usr/xpg4/bin and /usr/ccs/bin
> >
> >   The used variables for make are
> >
> >CPPFLAGS=-I/usr/local/ssl/include
> >NO_GETTEXT=YesPlease
> >NO_TCLTK=YesPlease
> 
> Try adding "MAKE = /usr/sfw/bin/gmake".
> 
  I used "gmake" instead of "make" in my script.  I later compiled
"make-4.0" and this bug did not show itself there.  "gmake" was version
3.81.

-- 
Bjarni I. Gislason

```
