mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-25 09:40:47 +02:00
Improve headers-standalone target
make check reports multiple: warning: control reaches end of non-void function and on MacOS X it complains that: error: unable to open executable ''
This commit is contained in:
parent
cec4c9c91a
commit
e4c042d059
1 changed files with 3 additions and 3 deletions
|
|
@ -25,9 +25,9 @@ headers-standalone: $(enabled_cairo_headers) $(enabled_cairo_private)
|
|||
@status=true; for f in $(enabled_cairo_headers) $(enabled_cairo_private); do \
|
||||
echo " CHECK $$f"; \
|
||||
echo "#include \"$(srcdir)/$$f\"" > headers-standalone-tmp.c; \
|
||||
echo "int main(int argc, char * argv[]) {}" >> headers-standalone-tmp.c; \
|
||||
$(COMPILE) -o /dev/null headers-standalone-tmp.c || status=false; \
|
||||
$(RM) headers-standalone-tmp.c; \
|
||||
echo "int main(int argc, char * argv[]) { return 0; }" >> headers-standalone-tmp.c; \
|
||||
$(COMPILE) -o headers-standalone-tmp headers-standalone-tmp.c || status=false; \
|
||||
$(RM) headers-standalone-tmp headers-standalone-tmp.c; \
|
||||
done; $$status
|
||||
@touch $@
|
||||
CLEANFILES += headers-standalone
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue