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  <20182019  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  <20182019 
<== Date ==> <== Thread ==>

Subject: Re: Forcing make rule in IOC Makefile
From: "Konrad, Martin" <konrad@frib.msu.edu>
To: Andrew Johnson <anj@aps.anl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 18 Jan 2018 18:58:34 +0000
Hi Andrew,
Thanks for your help. The TARGETS keyword was the missing piece. I also
had thought about creating empty files to keep track of which file has
been checked. My final solution looks very similar to what you suggested:

CHECKED = $(addsuffix .asg-checked, $(DB))
TARGETS += $(CHECKED)

include $(TOP)/configure/RULES

$(CHECKED): %.asg-checked : $(addprefix ../, %)
	@../check-asg.sh $< && touch $@ || true


#!/bin/bash
if grep -Pzo
'(?s)record\([^\)]+\)(?:(?!field\(ASG|record\([^\)]+\)).)*?}' $1 >
/dev/null ; then
  echo "$1: WARNING: Found records without access-security group. Please
explicitly specify ASG field."
  exit -1
fi

Engineers see the warning on every build but the check is skipped if it
already succeeded (unless the corresponding DB file has been updated in
the meantime).

Thanks a lot!

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: konrad@frib.msu.edu

Replies:
Re: Forcing make rule in IOC Makefile Andrew Johnson
References:
Forcing make rule in IOC Makefile Konrad, Martin

Navigate by Date:
Prev: Re: IOC crash Hinko Kocevar
Next: Re: Forcing make rule in IOC Makefile Andrew Johnson
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  <20182019 
Navigate by Thread:
Prev: Re: Forcing make rule in IOC Makefile Andrew Johnson
Next: Re: Forcing make rule in IOC Makefile Andrew Johnson
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  <20182019 
ANJ, 18 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·