Makefile: avoid running curl-config unnecessarily