mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
[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:
parent
6da8d8ea62
commit
35be087155
2 changed files with 4 additions and 1 deletions
1
src/.gitignore
vendored
1
src/.gitignore
vendored
|
|
@ -30,3 +30,4 @@ TAGS
|
|||
tags
|
||||
check-has-hidden-symbols.i
|
||||
check-link
|
||||
headers-standalone
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue