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: [email protected]
- 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
<2018>
2019
2020
2021
2022
2023
2024
- 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
<2018>
2019
2020
2021
2022
2023
2024
|