Hi Michael,
You got to be careful with your file names. IIRC the EPICS build system
contains rules that automatically expand templates and substitution
files using MSI as follows:
.substitutions -> .db
.template -> .db
The ".template" extension is only required if your file is using
"substitute" and "include". If your files don't contain these keywords
".db" would probably be a better choice. If you use these keywords you
probably want to refer to "foo.db" in your substitution file to include
the already expanded file.
That being said, the following works as expected:
$ grep DB Makefile
DB += file.db
$ cat file.substitutions
file "other1.db" {
{X=1}
}
file "other2.db" {
{X=2}
}
$ cat other1.db
# from file.template $(X)
$ cat other2.db
# from other.template $(X)
$ make -C ../../ distclean all
$ cat ../../db/file.db
# from file.template 1
# from other.template 2
HTH,
Martin
--
Martin Konrad
High Performance Controls Team Leader
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]
- Replies:
- Re: MSI Makefile Madness Bruce Hill
- Navigate by Date:
- Prev:
Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
- Next:
Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
MSI Makefile Madness Michael Davidsaver
- Next:
Re: MSI Makefile Madness Bruce Hill
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|