]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Exit 1 when compiling or running pdns_hw fails 2329/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 6 Mar 2015 18:16:30 +0000 (19:16 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 6 Mar 2015 18:16:30 +0000 (19:16 +0100)
pdns/Makefile-recursor

index 81fe799efa5effd54769f56fe6b926d0aa0153d7..2b7b12a6fb703c33124eaaea1d4520128ef66b26 100644 (file)
@@ -100,10 +100,11 @@ basic_checks:
        -$(CXX) $(CXXFLAGS) pdns_hw.cc -o pdns_hw
        @echo
        @if test -x ./pdns_hw ; \
-                then if ./pdns_hw; then echo Everything ok, now run $(MAKE) using same settings \(if any\) you passed ./configure; else echo Could compile binary, but not run it, read README please ; fi; \
+                then if ./pdns_hw; then echo Everything ok, now run $(MAKE) using same settings \(if any\) you passed ./configure; else echo Could compile binary, but not run it, read README please ; exit 1 ; fi; \
         else   \
                echo; echo Could not compile simple binary, read README please; \
                rm -f dep ; \
+               exit 1 ; \
         fi
 
 install: build-stamp