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:
Andrea Canciani 2011-03-15 23:08:16 +01:00
parent cec4c9c91a
commit e4c042d059

View file

@ -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