]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Prevent rebuilds of pdns_recursor during make install 798/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 17:42:32 +0000 (19:42 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 17:50:08 +0000 (19:50 +0200)
pdns/Makefile-recursor

index 0eeb26790d3a757374ae025bf6132ff4d9dc66f7..f218bb41424273937b5231681ded4d0f0de435e5 100644 (file)
@@ -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
+