From c3edfc4b2b58b073fd9b981b1ab802a93bdc1877 Mon Sep 17 00:00:00 2001
From: David Garcia Quintas <dgq@google.com>
Date: Wed, 29 Apr 2015 10:41:16 -0700
Subject: [PATCH] Fixed repetitions in Makefile.template.

---
 Makefile                    | 12 ------------
 templates/Makefile.template | 12 ------------
 2 files changed, 24 deletions(-)

diff --git a/Makefile b/Makefile
index 73352dfad1..d0a1284eb0 100644
--- a/Makefile
+++ b/Makefile
@@ -2845,18 +2845,6 @@ $(OBJDIR)/$(CONFIG)/%.o : %.cc
 	$(Q) mkdir -p `dirname $@`
 	$(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
 
-ifeq ($(CONFIG), stapprof)
-ifeq ($(HAS_SYSTEMTAP),true)
-$(GENDIR)/src/core/profiling/stap_probes.h: src/core/profiling/stap_probes.d
-	$(E) "[DTRACE]  Compiling $<"
-	$(Q) mkdir -p `dirname $@`
-	$(Q) $(DTRACE) -C -h -s $< -o $@
-else
-$(GENDIR)/src/core/profiling/stap_probes.c: systemtap_dep_error stop
-endif
-endif
-
-
 install: install_c install_cxx install-plugins install-certs verify-install
 
 install_c: install-headers_c install-static_c install-shared_c
diff --git a/templates/Makefile.template b/templates/Makefile.template
index 86b22a9874..fa1ff2b9bb 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -929,18 +929,6 @@ $(OBJDIR)/$(CONFIG)/%.o : %.cc
 	$(Q) mkdir -p `dirname $@`
 	$(Q) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
 
-ifeq ($(CONFIG), stapprof)
-ifeq ($(HAS_SYSTEMTAP),true)
-$(GENDIR)/src/core/profiling/stap_probes.h: src/core/profiling/stap_probes.d
-	$(E) "[DTRACE]  Compiling $<"
-	$(Q) mkdir -p `dirname $@`
-	$(Q) $(DTRACE) -C -h -s $< -o $@
-else
-$(GENDIR)/src/core/profiling/stap_probes.c: systemtap_dep_error stop
-endif
-endif
-
-
 install: install_c install_cxx install-plugins install-certs verify-install
 
 install_c: install-headers_c install-static_c install-shared_c
-- 
GitLab