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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: TDCT and Makefile question
From: Benjamin Franksen <[email protected]>
To: <[email protected]>
Date: Wed, 27 May 2015 19:48:09 +0200
Am Dienstag, 26. Mai 2015, 16:28:01 schrieb Mike Westfall:
> Hello EPICS braintrust,
>
> If I want to use TDCT instead of CapFAST to build database files from
> CapFAST schematics, how should I modify the Makefile to stop it from
> trying to run sch2edif, and to run tdct instead?
>
> Or will I just have to run 'tdct -s myschematic.sch' manually first?

It should be possible to just add a rule to the Makefile, something like

DB += myschematic.db
...
%.db: %.sch; tdct -s $< -db $@

If that doesn't work it's usually because there is a more general rule in
base. In that case a static pattern rule helps because it counts as more
specific than a normal pattern rule:

SRCS.sch += myschematic.sch
DB += $(SRCS.sch:%.sch=%.db)
DB_FROM_SCH += $(SRCS.sch:%.sch=$(INSTALL_DB)/%.db)

$(DB_FROM_SCH): %.db: %.sch; tdct -s $< -db $@

Disclaimer: code not tested, you might need to play around with command line
etc.

HTH
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


References:
TDCT and Makefile question Mike Westfall

Navigate by Date:
Prev: Re: Only integer value from CAEN VME protocol Christopher Wells Heidt
Next: RE: Draft requirements document for enhanced EPICS motor support Mark Clift
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: TDCT and Makefile question Mike Westfall
Next: Motor R6-9 build issues on Windows Heesterman, Peter J
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·