This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /usr/bin/install doesn't install files from Makefile


Am 2014-09-23 um 16:11 schrieb Marco Atzeri:
On 22/09/2014 23:14, Michael Osipov wrote:
Am 2014-09-17 um 12:16 schrieb Marco Atzeri:
On 17/09/2014 10:56, Michael Osipov wrote:
Am 2014-09-16 um 19:59 schrieb Csaba Raduly:
Hi Michael,


Unfortunately, it is not:
...
(cd /home/mosipov/asciidoc/bin; ln -sf asciidoc.py asciidoc)
(cd /home/mosipov/asciidoc/bin; ln -sf a2x.py a2x)


have you thought to look on asciidoc source ?
The install system is very poor, so it is not an issue of make..

However with

$ autoreconf -ifv
$ ./configure --prefix=/asciidoc
$ make install DESTDIR="/tmp/foo"

I was able to install in "/tmp/foo/asciidoc"

Hi Marco,

just tried to reproduce this on some other project which should work. I
have tried curl from GitHub master.

I have the very same result. I cannot install in $HOME/curl but
make install DESTDIR="/tmp" successfully ends up in
/tmp/home/mosipov/curl.

This is very strange.

Michael


why strange ?

Strange because of:

the final installation dir is ${DESTDIR}${PREFIX}

for if you put
   DESTDIR="/tmp"
   --prefix=$HOME/curl

the result will be in  /tmp$HOME/curl alias /tmp/home/mosipov/curl

Install does not work at all, if I do not supply the DESTDIR variable.
Regard where I want to install. That is the point.

Here is the output: http://pastebin.com/RQbAnz6e


On asciidoc there is a mistake and the final dir is
   ${DESTDIR}/${PREFIX}

so if you define only
   --prefix=$HOME/curl
   and not DESTDIR

the final dir should be /$HOME/curl alias //home/mosipov/asciidoc
and cygwin rejects the leading "//" as they have a special meaning.
https://cygwin.com/cygwin-ug-net/using.html#unc-paths

In that case the trick is
   DESTDIR="/"
  --prefix=$HOME/asciidoc

the result will be in  ///$HOME/asciidoc
  alias ///home/mosipov/asciidoc
  alias /home/mosipov/asciidoc

That is nice. asciidoc is broken here. I will open up an issue on GitHub.

Michael


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]