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: | Macro substitution for a filename |
From: | "Daykin, Evan via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 2 Apr 2020 18:56:12 +0000 |
Hello, I was wondering if the following is possible: ##file1.db record(ao, “test1”) { } ##file2.db record(ao, “test2”) { } ##macro-filename.template include “file$(FILENUMBER).db” ##top-level.template substitute “FILENUMBER=1” include macro-filename.template I tried this pattern but received an error indicating file$(FILENUMBER).db couldn’t be opened, suggesting the macro is not expanded. Is this possible or should I look for errors in my naming/substitutions/Makefile? Thank you and be well, -Evan |