]> granicus.if.org Git - pdns/commitdiff
recursor: Protobuf auto* cleanup
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 31 Mar 2016 13:09:48 +0000 (15:09 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 7 Apr 2016 15:11:17 +0000 (17:11 +0200)
pdns/recursordist/Makefile.am
pdns/recursordist/configure.ac
pdns/recursordist/m4/pdns_enable_protobuf.m4 [deleted symlink]
pdns/recursordist/m4/pdns_with_protobuf.m4 [new symlink]

index 55df2b560e67f3aee12bf175e8757642f307e651..61e3eb8eb2bee031efbb74eae9cb86ddf65ea548 100644 (file)
@@ -20,6 +20,9 @@ AM_LDFLAGS = \
 ACLOCAL_AMFLAGS = -I m4
 
 BUILT_SOURCES=htmlfiles.h
+CLEANFILES = htmlfiles.h \
+       dnsmessage.pb.cc \
+       dnsmessage.pb.h
 
 htmlfiles.h: html/*
        ./incfiles > $@
@@ -169,13 +172,16 @@ pdns_recursor_SOURCES += \
        portsmplexer.cc
 endif
 
+if HAVE_PROTOBUF
+if HAVE_PROTOC
 dnsmessage.pb.cc: dnsmessage.proto
-       protoc --cpp_out=./ $<
+       $(AM_V_GEN)$(PROTOC) --cpp_out=./ $<
 
-if HAVE_PROTOBUF
 BUILT_SOURCES += dnsmessage.pb.cc
 pdns_recursor_LDADD += $(PROTOBUF_LIBS)
 nodist_pdns_recursor_SOURCES = dnsmessage.pb.cc dnsmessage.pb.h
+pdns_recursor.$(OBJEXT): dnsmessage.pb.cc
+endif
 endif
 
 rec_control_SOURCES = \
index 4210807e7561e4ffa95378e0dfec8979fcc1fdc0..f67b816f64db8302819f4b1c4a778724fccc8679 100644 (file)
@@ -115,7 +115,7 @@ AS_IF([test "x$enable_hardening" != "xno"], [
 
 PDNS_ENABLE_SANITIZERS
 PDNS_ENABLE_MALLOC_TRACE
-PDNS_ENABLE_PROTOBUF
+PDNS_WITH_PROTOBUF
 PDNS_CHECK_PANDOC
 
 AC_SUBST(LIBS)
diff --git a/pdns/recursordist/m4/pdns_enable_protobuf.m4 b/pdns/recursordist/m4/pdns_enable_protobuf.m4
deleted file mode 120000 (symlink)
index 31d73d8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../m4/pdns_enable_protobuf.m4
\ No newline at end of file
diff --git a/pdns/recursordist/m4/pdns_with_protobuf.m4 b/pdns/recursordist/m4/pdns_with_protobuf.m4
new file mode 120000 (symlink)
index 0000000..bdfe381
--- /dev/null
@@ -0,0 +1 @@
+../../../m4/pdns_with_protobuf.m4
\ No newline at end of file