EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problem with DB_INSTALLS in Makefile
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Andrew Johnson <anj at anl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 31 Aug 2022 19:35:20 +0000

Hi Andrew,

 

Ø  As Michael explained, DB_INSTALLS is now used for installing local copies of files from other modules, whereas DB is used for installing files that come from this source directory.

 

That is not what it says in the Application Developer’s Guide for 3.16.2, which says:

 

***************************

4.6.11 DB install files

Definitions of the form:

    DB_INSTALLS += <name>

result in files being installed to the $(INSTALL LOCATION/db directory. The file can appear with or without a directory prefix. If the file has a directory prefix e.g. $(APPNAME)/db/, it is copied from the specified location. If a directory prefix is not present, make will look in the current source directory for the file.

***************************

 

Is the current behavior documented somewhere?

 

Thanks,

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Andrew Johnson via Tech-talk
Sent: Wednesday, August 31, 2022 11:44 AM
To: tech-talk at aps.anl.gov
Subject: Re: Problem with DB_INSTALLS in Makefile

 

Hi Mark,

On 8/31/22 9:40 AM, Mark Rivers via Tech-talk wrote:

I just tested the template file generation in asyn with this command:

 

/home/epics/devel/asyn/bin/linux-x86_64/makeSupport.pl -t streamSCPI test4

...

This is the Makefile it generated:

 

**********************

corvette:~/scratch/test4/test4Sup>more Makefile

TOP=..

include $(TOP)/configure/CONFIG

#=======================================

 

# Install .dbd and .db files

DB_INSTALLS += devtest4.db

DB_INSTALLS += $(TOP)/test4Sup/devtest4.proto

 

#=======================================

include $(TOP)/configure/RULES

**********************

The Makefile looks OK to me.  I am not sure why the proto file has an explicit path, and the .db file did not, since they are in the same directory.

The makeSupport.pl script is just copying the template files provided by Asyn and substituting macros. makeSupport/streamSCPI/_Name_Sup/Makefile template exactly matches the above. It looks like Janet made a change between Base-3.14.9 and 3.14.10 that modified the DB_INSTALLS rule to do what it does now.

It seems like DB_INSTALLS works if the file has a path, but does not work if the file is in the current directory?

As Michael explained, DB_INSTALLS is now used for installing local copies of files from other modules, whereas DB is used for installing files that come from this source directory. You may be able to use

DB_INSTALLS += ../devtest4.db

instead of DB, but that merely complicates the Makefile.

You'll need to adjust the template files in Asyn as appropriate.

- Andrew

-- 
Complexity comes for free, Simplicity you have to work for.

References:
Problem with DB_INSTALLS in Makefile Mark Rivers via Tech-talk
Re: Problem with DB_INSTALLS in Makefile Andrew Johnson via Tech-talk

Navigate by Date:
Prev: Re: asyn build fail Li, Ji via Tech-talk
Next: Re: Building with INSTALL_PATH= Andrew Johnson via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Re: Problem with DB_INSTALLS in Makefile Andrew Johnson via Tech-talk
Next: asyn build fail Siddons, David via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·