]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Add "make -s install" in the releasecheck target
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 11 Dec 2022 17:58:31 +0000 (18:58 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 11 Dec 2022 18:03:19 +0000 (19:03 +0100)
CHANGES
Makefile.in

diff --git a/CHANGES b/CHANGES
index 81d0d9fe6c526cde4d04f2872c3844481c7f46b6..43da5e8734b67a62fa7576bb4a503f38f367ded5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -44,6 +44,7 @@ Monthday, Month DD, YYYY by gharris and denis
       Makefile.in: Add the releasecheck target.
       Cirrus CI: Add the "make releasecheck" command in the Linux task.
       CI: Introduce and use TCPDUMP_CMAKE_TAINTED.
+      Makefile.in: Add "make -s install" in the releasecheck target.
 
 TBD
   Summary for 4.99.2 tcpdump release (so far!)
index 85c67f61986cec389fcec88bc65ceb48ed85d700..0054f05ff37a1fde38ddda90690727f376a54f14 100644 (file)
@@ -490,29 +490,40 @@ releasetar:
 
 releasecheck: releasetar
        @TAG=$(PROG)-`cat VERSION` && \
+       INSTALL_DIR=/tmp/install_"$$TAG"_$$$$ && \
        DIR=`pwd` && \
        cd /tmp && \
        rm -rf "$$TAG" && \
+       rm -rf "$$INSTALL_DIR" && \
        tar xf "$$DIR"/"$$TAG".tar.gz && \
        cd "$$TAG" && \
-       echo '[$@] $$ ./configure --enable-smb --quiet' && \
-       ./configure --enable-smb --quiet && \
+       echo "[$@] $$ ./configure --enable-smb --quiet --prefix=$$INSTALL_DIR" && \
+       ./configure --enable-smb --quiet --prefix="$$INSTALL_DIR" && \
        echo '[$@] $$ make -s all check' && \
        make -s all check >/dev/null && \
+       echo '[$@] $$ make -s install' && \
+       make -s install && \
        cd .. && \
        rm -rf "$$TAG" && \
+       rm -rf "$$INSTALL_DIR" && \
        tar xf "$$DIR"/"$$TAG".tar.gz && \
        cd "$$TAG" && \
        mkdir build && \
        cd build && \
        echo '[$@] $$ cmake -DENABLE_SMB=yes [...] ..' && \
        cmake -DENABLE_SMB=yes \
+           -DCMAKE_INSTALL_PREFIX="$$INSTALL_DIR" \
            -DCMAKE_MESSAGE_LOG_LEVEL=NOTICE \
-           -DCMAKE_RULE_MESSAGES=OFF .. && \
+           -DCMAKE_RULE_MESSAGES=OFF \
+           -DCMAKE_INSTALL_MESSAGE=NEVER \
+           .. && \
        echo '[$@] $$ make -s all check' && \
        make -s all check >/dev/null && \
+       echo '[$@] $$ make -s install' && \
+       make -s install && \
        cd ../.. && \
        rm -rf "$$TAG" && \
+       rm -rf "$$INSTALL_DIR" && \
        echo '[$@] Done.'
 
 testlist: