EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  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  Index 1994  1995  1996  1997  <19981999  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 
<== Date ==> <== Thread ==>

Subject: Re: living without soft links
From: [email protected] (Tim Mooney)
To: [email protected]
Cc: [email protected]
Date: Fri, 11 Dec 1998 19:32:09 -0600
re...

> > > The make rules will use soft links to the share/db directory on unix
> > > systems and copy the shared templates to the application under WIN32.
> > 
> > It might be nice to have similar treatment for db files.
> 
> Try changing line 46 in RULES.Db:
> < $(notdir $(TEMPLATE_LINKS)): %.template:
> > $(notdir $(TEMPLATE_LINKS)): %:
> 
> This should make the link/copy mechanism of USES_TEMPLATE work for any file
> name. Please tell me if this works, for it might be considered a permanent
> change then.

No luck.  That gets .db files from share into the O.<arch> directory, but it's
tough sledding from there, because make is frantic about dependencies on
.db files in that directory.

I ended up with something that copies straight from share into the install
directory and is derived your code involving the symbol TEMPLATE_LINKS.
The user specifies the new symbol DB_LINKS in Makefile.Host, like so

	DB_LINKS += $(SHARE)/stdApp/Db/motor.db

and this gets treated by the following lines added to RULES.Db

	ifneq '$(DB_LINKS)' ''
	build:: $(notdir $(DB_LINKS))
	endif

	$(notdir $(DB_LINKS)):
		@$(RM) $(addprefix $(INSTALL_DB)/, $(notdir $(DB_LINKS)))
	ifndef WIN32
		ln -s $(DB_LINKS) $(INSTALL_DB)
	else
		$(CP) $(DB_LINKS) $(INSTALL_DB)
	endif

This works and doesn't appear to have any side effects.

I also have modified copies of dbLoadRecords and dbLoadTemplate so that
they work with a path argument, and are backward compatible with the standard
calling syntax.

Tim

Navigate by Date:
Prev: Re: tkCVS - tk based GUI for CVS Guy Jennings
Next: Re: ALH Maren Purves
Index: 1994  1995  1996  1997  <19981999  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 
Navigate by Thread:
Prev: Re: living without soft links Ralph Lange
Next: tkCVS - tk based GUI for CVS Ralph Lange
Index: 1994  1995  1996  1997  <19981999  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·