# BUG?? INSTALL MAKEFILE

8 messages from 2009-01-06 to 2009-01-07. Participants: Lars Sadau, Matthieu Moy, Mike Ralphson, Ted Pavlic, Daniel Barkalow.
Thread: https://gitlist.dev/t/17022

## Lars Sadau, 2009-01-06 13:26

Subject: BUG?? INSTALL MAKEFILE
Message-ID: <49635BF8.1010700@sadau-online.de>
URL: https://gitlist.dev/e/49635BF8.1010700%40sadau-online.de

```
Hallo,

i'm a brand-new git user. Just one minute ago I wanted to install git in
my home directory. The INSTALL file says type simply "make install", but
the makefile does a global installation.

Lars

```

## Matthieu Moy, 2009-01-06 14:56

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <vpqiqosa3fc.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpqiqosa3fc.fsf%40bauges.imag.fr
In-Reply-To: <49635BF8.1010700@sadau-online.de>

```
Lars Sadau <lars@sadau-online.de> writes:

> Hallo,
>
> i'm a brand-new git user. Just one minute ago I wanted to install git in
> my home directory. The INSTALL file says type simply "make install", but
> the makefile does a global installation.

I was going to write:

  Either run ./configure --prefix=$HOME/wherever/you/want or edit the
  prefix variable in config.mak.

but then realized that prefix is set to $(HOME) by default. Are you
sure you didn't edit the Makefile or run any sort of ./configure
before "make install" ?
  
-- 
Matthieu

```

## Mike Ralphson, 2009-01-06 15:22

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <e2b179460901060722t32a1cb0o15af1a2084cc72f9@mail.gmail.com>
URL: https://gitlist.dev/e/e2b179460901060722t32a1cb0o15af1a2084cc72f9%40mail.gmail.com
In-Reply-To: <vpqiqosa3fc.fsf@bauges.imag.fr>

```
2009/1/6 Matthieu Moy <Matthieu.Moy@imag.fr>
> Lars Sadau <lars@sadau-online.de> writes:
> > i'm a brand-new git user. Just one minute ago I wanted to install git in
> > my home directory. The INSTALL file says type simply "make install", but
> > the makefile does a global installation.
>
> I was going to write:
>
>  Either run ./configure --prefix=$HOME/wherever/you/want or edit the
>  prefix variable in config.mak.
>
> but then realized that prefix is set to $(HOME) by default. Are you
> sure you didn't edit the Makefile or run any sort of ./configure
> before "make install" ?

Or run 'make' as root, as well as 'make install'?

Mike

```

## Ted Pavlic, 2009-01-06 16:26

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <49638625.3090109@tedpavlic.com>
URL: https://gitlist.dev/e/49638625.3090109%40tedpavlic.com
In-Reply-To: <vpqiqosa3fc.fsf@bauges.imag.fr>

```
> but then realized that prefix is set to $(HOME) by default. Are you
> sure you didn't edit the Makefile or run any sort of ./configure
> before "make install" ?

After doing a

	git clean -f

in my local git repo, I notice that:

	config.mak.autogen

still exists, and inside it:

	prefix = /usr/local

That file is included in the Makefile *after* prefix is set, and so if 
it's not updated, the Makefile will default to /usr/local.


According to the INSTALL doc, the default prefix should be ~. However, 
this is certainly not the case. Either the INSTALL doc needs to be 
updated or a new default config.mak.autogen needs to be checked in (or 
perhaps config.mak.autogen needs to be omitted from the repo?).

--Ted


-- 
Ted Pavlic <ted@tedpavlic.com>

```

## Matthieu Moy, 2009-01-06 17:17

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <vpqzli45p6q.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpqzli45p6q.fsf%40bauges.imag.fr
In-Reply-To: <49638625.3090109@tedpavlic.com>

```
Ted Pavlic <ted@tedpavlic.com> writes:

> According to the INSTALL doc, the default prefix should be ~.

I didn't read that in INSTALL. What I read is that if I only run "make
install", the prefix is $HOME, which is true. Now, ./configure uses a
default value which is not the one of the Makefile, but that's another
point.

-- 
Matthieu

```

## Daniel Barkalow, 2009-01-06 17:24

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <alpine.LNX.1.00.0901061210250.19665@iabervon.org>
URL: https://gitlist.dev/e/alpine.LNX.1.00.0901061210250.19665%40iabervon.org
In-Reply-To: <49638625.3090109@tedpavlic.com>

```
On Tue, 6 Jan 2009, Ted Pavlic wrote:

> > but then realized that prefix is set to $(HOME) by default. Are you
> > sure you didn't edit the Makefile or run any sort of ./configure
> > before "make install" ?
> 
> After doing a
> 
> 	git clean -f

You need a "git clean -fx"

> According to the INSTALL doc, the default prefix should be ~. However, this is
> certainly not the case. Either the INSTALL doc needs to be updated or a new
> default config.mak.autogen needs to be checked in (or perhaps
> config.mak.autogen needs to be omitted from the repo?).

It's omitted from the repo, but it's in .gitignore so "git clean" doesn't 
remove it unless you tell it to remove ignored files.

	-Daniel
*This .sig left intentionally blank*

```

## Ted Pavlic, 2009-01-06 19:44

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <4963B497.4000104@tedpavlic.com>
URL: https://gitlist.dev/e/4963B497.4000104%40tedpavlic.com
In-Reply-To: <49638625.3090109@tedpavlic.com>

```
> 	git clean -f

DOH. I meant to do

	git clean -fx

(or just a git ls-files). That config.mak.autogen is certainly not 
checked into the repo, and a quick test confirms that "make install" 
certainly does set prefix to the home directory.

That being said, I'm sure that in the recent past I had to use configure 
to install git into home directories.

--Ted


-- 
Ted Pavlic <ted@tedpavlic.com>

```

## Lars Sadau, 2009-01-07 10:44

Subject: Re: BUG?? INSTALL MAKEFILE
Message-ID: <loom.20090107T104303-14@post.gmane.org>
URL: https://gitlist.dev/e/loom.20090107T104303-14%40post.gmane.org
In-Reply-To: <vpqzli45p6q.fsf@bauges.imag.fr>

```
Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:

> 
> Ted Pavlic <ted <at> tedpavlic.com> writes:
> 
> > According to the INSTALL doc, the default prefix should be ~.

I am the same opinion


> I didn't read that in INSTALL. What I read is that if I only run "make
> install", the prefix is $HOME, which is true. Now, ./configure uses a
> default value which is not the one of the Makefile, but that's another
> point.
> 

May be not, confuses newbies.

------
Lars

```
