1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: How to use INSTALL_LOCATION with system directories |
From: | Lucas Russo via Tech-talk <tech-talk at aps.anl.gov> |
To: | Ralph Lange <ralph.lange at gmx.de> |
Cc: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Wed, 11 Oct 2023 08:54:32 +0200 |
On Tue, 10 Oct 2023 at 10:21, Lucas Russo via Tech-talk <tech-talk at aps.anl.gov> wrote:Regardless of the location our sites decide, does it make sense to tryto support that use case straight out of the box (box = epics base makefile rules)?I don't really care about the staging area, that being out of source build or not,so INSTALL_LOCATION could be $(TOP) or something I have write access to,that is fine. I think I'm just concerned with the final installation step or FINAL_LOCATION,from what I understand now.So, does it make sense to add or split rules in EPICS base (maintainingbackwards compatibility) to provide that?Something like:make buildsudo make FINAL_LOCATION=/opt/test installOr whatever target name to compile and one target for installing the binaries/libs/etc?You do have a point there.Classical open-source answer, then: The developers will be happy to review your PR. :-)Be aware that EPICS has a number of quirks, though: tools being generated, header files being generated, such things.Shouldn't make it impossible, but if you split build and install, the build of Base, e.g., while using the same Make rules, can't use locally created tools using the installation path, while building any downstream support modules needs to use Base's (installation) path for the same tools.One thing is certain: You will learn a lot about how the EPICS Build system internally works, which - when working with EPICS - is a valuable thing.Cheers,
~Ralph