# git-gui Makefile: cannot derive correct sharedir when gitexecdir has a space char

2 messages from 2019-09-17 to 2019-09-17. Participants: Birger Skogeng Pedersen.
Thread: https://gitlist.dev/t/51865

## Birger Skogeng Pedersen, 2019-09-17 10:48

Subject: git-gui Makefile: cannot derive correct sharedir when gitexecdir has a space char
Message-ID: <CAGr--=+L6tff-5oSX9oAF6AnvPwv8GDxb8vfyhRBnSS+JU7AAw@mail.gmail.com>
URL: https://gitlist.dev/e/CAGr--%3D%2BL6tff-5oSX9oAF6AnvPwv8GDxb8vfyhRBnSS%2BJU7AAw%40mail.gmail.com

```
Hi,


I ran into som issues when compiling git-gui on Windows. Turns out
that the "sharedir" variable gets an incorrect value when "gitexecdir"
contains a space.

For instance when
gitexecdir is set to "/c/Program Files/Git/mingw64/libexec",
sharedir becomes "/c/ Files/Git/mingw64/share".

Perhaps it is me doing something wrong when setting the gitexecdir env
variable? I use
export gitexecdir=/c/Program\ Files/Git/mingw64/libexec

If that's a way to do it, should the Makefile be modified to derive
sharedir another way? Perhaps with a check if we're on a Windows
system.

What do you think?


Birger

```

## Birger Skogeng Pedersen, 2019-09-17 11:24

Subject: Re: git-gui Makefile: cannot derive correct sharedir when gitexecdir has a space char
Message-ID: <CAGr--=JMEuCRZZaiE0Djw6igSm4DgVrgxKPVEEZuiaH6yfY1wQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGr--%3DJMEuCRZZaiE0Djw6igSm4DgVrgxKPVEEZuiaH6yfY1wQ%40mail.gmail.com
In-Reply-To: <CAGr--=+L6tff-5oSX9oAF6AnvPwv8GDxb8vfyhRBnSS+JU7AAw@mail.gmail.com>

```
Just saw this[0] issue discussed about GNU Make. It seems Make don't
play with path with spaces (at all). I guess my best solution is just
to make a symbolic link so there's a path without spaces.
I guess this issue can be ignored.

[0] http://savannah.gnu.org/bugs/?712

Best regards,
Birger

```
