On Mon, Apr 28, 2014 at 08:20:04PM +0200, bilibop project wrote:
> I don't understand the need to call a shell script from the Makefile.
> According to the FHS,
> the main directories where you may want to install shell scripts, shell
> libraries, config files
> and their documentation are: /etc, /bin, /sbin, /usr, /lib, and why not,
> /var. So you can use
> a very generic "install" target - and probably more portable/elegant than the
> find command
> above - with something like
>
> DESTDIR ?= /
> install:
> for d in bin etc lib sbin usr var; do if [ -d $${d} ]; then cp -R
> $${d} ${DESTDIR}; fi; done
>
> That's all; this doesn't need a lot of rsync's or find's exceptions.
This (and at least some other recipes in this thread) fails the common
asusmption that make install without DESTDIR installs to /usr/local, not
to /usr and /.-- WBR, wRAR
signature.asc
Description: Digital signature

