Makefile: autogen.sh protobuf-c-text once only
authorRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 17:30:34 +0000 (19:30 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 17:30:34 +0000 (19:30 +0200)
Makefile

index 23e82e8552c8838c271e442385dae645803501b8..5535d06363a87eb428100653ce23d3f5460bc9d3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -86,13 +86,13 @@ endif
 protobuf-c-text:
 ifeq ("$(wildcard protobuf-c-text/configure)","")
        git submodule update --init
+       sh -c "cd protobuf-c-text; CFLAGS=\"$(EXTRA_CFLAGS)\" ./autogen.sh;"
 endif
 
 kafel/libkafel.a:
        $(MAKE) -C kafel
 
 protobuf-c-text/protobuf-c-text/.libs/libprotobuf-c-text.a:
-       sh -c "cd protobuf-c-text; CFLAGS=\"$(EXTRA_CFLAGS)\" ./autogen.sh;"
        $(MAKE) -C protobuf-c-text
 
 $(PROTO_DEPS): config.proto