]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Use the variable MAKE instead of the make command
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 8 May 2023 08:41:28 +0000 (10:41 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 8 May 2023 08:56:51 +0000 (10:56 +0200)
From https://www.gnu.org/software/make/manual/make.html#MAKE-Variable:
```
Recursive make commands should always use the variable MAKE, not the
explicit command name 'make', as shown here:

subsystem:
cd subdir && $(MAKE)
```

This should avoid the following warning when running 'make releasecheck'
in some cases:
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent
make rule.

Makefile.in

index 1ddeae85a6ae3550929c36205cdcde533772ade8..cd0f01c377418ca4b9f32519d5946d79c4de0c2e 100644 (file)
@@ -512,10 +512,10 @@ releasecheck: releasetar
        cd "$$TAG" && \
        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 && \
+       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" && \
@@ -530,10 +530,10 @@ releasecheck: releasetar
            -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 && \
+       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" && \