From ce2b3ceb38374ae144390db3cbd9bedb887e8a66 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Fri, 10 May 2013 19:42:32 +0200 Subject: [PATCH] Prevent rebuilds of pdns_recursor during make install --- pdns/Makefile-recursor | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 0eeb26790d..f218bb4142 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -26,7 +26,7 @@ REC_CONTROL_OBJECTS=rec_channel.o rec_control.o arguments.o misc.o \ unix_utility.o logger.o qtype.o # what we need -all: message version_generated.h pdns_recursor rec_control +all: message version_generated.h build # Version build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S') @@ -83,7 +83,7 @@ basic_checks: rm -f dep ; \ fi -install: all +install: build-stamp -mkdir -p $(DESTDIR)/$(SBINDIR) mv pdns_recursor $(DESTDIR)/$(SBINDIR) strip $(DESTDIR)/$(SBINDIR)/pdns_recursor @@ -100,7 +100,7 @@ clean: binclean -rm -f dep *~ *.gcda *.gcno optional/*.gcda optional/*.gcno binclean: - -rm -f *.o pdns_recursor rec_control optional/*.o + -rm -f *.o pdns_recursor rec_control optional/*.o build-stamp dep: $(CXX) $(CXXFLAGS) -MM -MG *.cc *.c *.hh > $@ @@ -116,3 +116,9 @@ pdns_recursor: optional $(OPTIONALS) $(PDNS_RECURSOR_OBJECTS) rec_control: $(REC_CONTROL_OBJECTS) $(LINKCC) $(REC_CONTROL_OBJECTS) $(LDFLAGS) -o $@ +build-stamp: + $(MAKE) build + +build: pdns_recursor rec_control + touch build-stamp + -- 2.47.2