From: Christian Hofstaedtler Date: Fri, 10 May 2013 17:42:32 +0000 (+0200) Subject: Prevent rebuilds of pdns_recursor during make install X-Git-Tag: auth-3.3-rc1~71^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F798%2Fhead;p=thirdparty%2Fpdns.git Prevent rebuilds of pdns_recursor during make install --- 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 +