[OGo-GNUstep-Port] Re: skyrix-sope installation paths
Nicola Pero
gnustep-port@opengroupware.org
Thu, 28 Aug 2003 13:09:22 +0100 (BST)
> ---snip---
> > after-install ::
> > - $(MKDIRS) $(GNUSTEP_MAKEFILES)/Additional/
> > - $(INSTALL_DATA) ngobjweb.make $(GNUSTEP_MAKEFILES)/Additional/ngobjweb.make
> > + $(MKDIRS) $(GNUSTEP_INSTALLATION_DIR)/Library/Makefiles/Additional/
> > + $(INSTALL_DATA) ngobjweb.make $(GNUSTEP_INSTALLATION_DIR)/Library/Makefiles/Additional/ngobjweb.make
> ---snap---
>
> Does that actually make sense? Eg if I select to install libNGObjWeb in
> GNUSTEP_LOCAL_ROOT the files will end up in
> local-root/Library/Makefiles/Additional, which is wrong (or am I
> mistaken that Makefiles _must_ be located in
> $GNUSTEP_SYSTEM_ROOT/Library/Makefiles aka GNUSTEP_MAKEFILES)?
You are right. You must install the makefiles into
$(GNUSTEP_MAKEFILES)/Additional.
But technically (to allow gnustep-make build automatically rpm for
example) it's better to install into
$(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional
(Everytime you install something into a location which is not rooted under
GNUSTEP_INSTALLATION_DIR, it is recommended that you prefix the
installation path with $(INSTALL_ROOT_DIR), which allows custom make rules
to relocate the whole installed stuff into a different directory
(GNUSTEP_INSTALLATION_DIR is automatically relocated so everything is
automatically relocated, but stuff using a hardcoded absolute path is
not).)
Normally INSTALL_ROOT_DIR is empty so that this is just the same as
$GNUSTEP_MAKEFILES normally, but having INSTALL_ROOT_DIR in front it's
better - it costs nothing and if (for example) you/someone ever wants to
use gnustep-make's support for automatically building RPMs (or even if you
want to build your own packaging mechanism on top of the existing stuff)
it will be necessary, so it's good to have it.