[Makefile.am] Only rerun headers-standalone if a header file has changed

Use a stamp to mark the time that the headers were last checked and only
rerun the test if any have been modified since.
This commit is contained in:
Chris Wilson 2008-09-30 10:54:45 +01:00
parent 6da8d8ea62
commit 35be087155
2 changed files with 4 additions and 1 deletions

1
src/.gitignore vendored
View file

@ -30,3 +30,4 @@ TAGS
tags
check-has-hidden-symbols.i
check-link
headers-standalone

View file

@ -20,11 +20,13 @@ uno:
@echo Checking enabled sources with uno checker
cd $(srcdir); $(UNO) $(PREPROCESS_ARGS) -DHAVE_CONFIG_H -U__GNUC__ $(enabled_cairo_sources)
headers-standalone:
headers-standalone: $(enabled_cairo_headers) $(enabled_cairo_private)
@echo Checking that enabled public/private headers can be compiled standalone
@status=true; for f in $(enabled_cairo_headers) $(enabled_cairo_private); do \
echo $(COMPILE) -o /dev/null $(srcdir)/$$f; \
$(COMPILE) -o /dev/null $(srcdir)/$$f || status=false; \
done; $$status
@touch $@
CLEANFILES += headers-standalone
analysis: all headers-standalone sparse splint uno