Guillaume Rousse <[EMAIL PROTECTED]> writes:
> >�make DESTDIR=/desired/destination/directory install
>
> OK, it works now, thanks.
> However, isn't make prefix=$RPM_BUILD_ROOT/%{_prefix} install more
> standard ?
For automake ready programs DESTDIR is real standard. Of course in
most cases make install prefix will work and it's one of solutions but
it won't work for some dirs like /var ... you ned make \
prefix=... localstatedir=$RPM_BUILD_ROOT/var etc.. .This way sucks :-)
Also big part of popular software used on Linux is DESTDIR ready. Some
PLD stats:
[misiek@arm SPECS]$ grep DESTDIR *.spec | cut -d: -f1 | sort -u | wc -l
1358
[misiek@arm SPECS]$ ls *.spec | wc -l
2485
[misiek@arm SPECS]$
> Just for my understanding, why was my previous install command working with
> bin and not with include, whereas both bindir and includedir are specified in
> the command line ?
No idea. For me it works and prefix is enough:
[misiek@arm avifile-0.6]$ make install prefix=/tmp
Making install in include
make[1]: Wchodzę w katalog `/home/users/misiek/avifile-0.6/include'
make[2]: Wchodzę w katalog `/home/users/misiek/avifile-0.6/include'
make[2]: Nie nic do roboty w `install-exec-am'.
/bin/sh ../mkinstalldirs /tmp/include/avifile
/usr/bin/install -c -m 644 Locker.h /tmp/include/avifile/Locker.h
/usr/bin/install -c -m 644 ReadHandlers.h /tmp/include/avifile/ReadHandlers.h
/usr/bin/install -c -m 644 StreamInfo.h /tmp/include/avifile/StreamInfo.h
...
(I removed other dirs from main Makefile.am SUBDIRS so only include
subdir is processed; just to make test shorter)
> Guillaume Rousse <[EMAIL PROTECTED]>
--
Arkadiusz Miśkiewicz, AM2-6BONE, 1024/3DB19BBD
IPv6 ready PLD Linux at http://www.pld.org.pl/
My jsme Borg. Odpor je marný, budete asimilováni