We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001bda0 commit 04ad4b3Copy full SHA for 04ad4b3
Makefile
@@ -9,8 +9,16 @@ endif
9
CC ?= gcc
10
CXX ?= g++
11
12
+# pkg-config for protobuf can be expensive/slow
13
+# Skip pkg-config for: clean, indent, kafel_init, and kafel-only builds
14
+ifneq ($(filter-out clean indent kafel_init kafel/libkafel.a,$(MAKECMDGOALS)),)
15
PROTOBUF_CFLAGS := $(shell pkg-config --cflags protobuf)
16
PROTOBUF_LIBS := $(shell pkg-config --libs protobuf)
17
+else ifeq ($(MAKECMDGOALS),)
18
+# Default target (all) requires protobuf
19
+PROTOBUF_CFLAGS := $(shell pkg-config --cflags protobuf)
20
+PROTOBUF_LIBS := $(shell pkg-config --libs protobuf)
21
+endif
22
23
NL3_EXISTS := $(shell pkg-config --exists libnl-route-3.0 && echo yes)
24
0 commit comments