Makefile.am: Replace make with ${MAKE} (#270)
authorsam_c <11667869+thesamesam@users.noreply.github.com>
Mon, 20 Apr 2020 17:29:16 +0000 (18:29 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 17:29:16 +0000 (19:29 +0200)
Fixes warnings such as:
"warning: jobserver unavailable: using -j1. Add `+' to parent make rule."

Signed-off-by: Sam James (sam_c) <sam@cmpct.info>
Makefile.am
doc/Makefile.am

index 5ac537f621d599f6743e74f0bf3a17008d946277..ec9c4447c0b9cf61a826bbffd77fd278385de5de 100644 (file)
@@ -23,13 +23,13 @@ maintainer-clean-local:
        rm -f config.log debian
 
 testsuite:
-       cd src/testsuite && make check
+       cd src/testsuite && ${MAKE} check
 
 lint:
-       cd src/ngircd && make lint
+       cd src/ngircd && ${MAKE} lint
 
 srcdoc:
-       cd doc && make srcdoc
+       cd doc && ${MAKE} srcdoc
 
 have-xcodebuild:
        @xcodebuild -project contrib/MacOSX/ngIRCd.xcodeproj -list \
@@ -64,7 +64,7 @@ osxpkg: have-packagemaker osxpkg-dest
         --out ../../$(distdir).mpkg
        rm -f $(distdir).mpkg.zip
        zip -ro9 $(distdir).mpkg.zip $(distdir).mpkg
-       make osxpkg-clean
+       ${MAKE} osxpkg-clean
 
 osxpkg-clean:
        [ ! -r ngircd.dest ] || sudo -n rm -rf ngircd.dest
@@ -72,12 +72,12 @@ osxpkg-clean:
 
 osxpkg-dest: have-xcodebuild osxpkg-clean clean
        ./configure --prefix=/opt/ngircd
-       make xcode
-       make -C contrib/MacOSX de.barton.ngircd.plist
+       ${MAKE} xcode
+       ${MAKE} -C contrib/MacOSX de.barton.ngircd.plist
        mkdir -p ngircd.dest/opt/ngircd/sbin
-       DESTDIR="$$PWD/ngircd.dest" make -C doc install
-       DESTDIR="$$PWD/ngircd.dest" make -C contrib install
-       DESTDIR="$$PWD/ngircd.dest" make -C man install
+       DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C doc install
+       DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C contrib install
+       DESTDIR="$$PWD/ngircd.dest" ${MAKE} -C man install
        cp contrib/MacOSX/build/Default/ngIRCd \
         ngircd.dest/opt/ngircd/sbin/ngircd
        rm ngircd.dest/opt/ngircd/etc/ngircd.conf
index 5c8a5d8554d6691e1b04fbf048e5f73185388eee..4ce26f06bfb09353da98b28467f0b8f875a74227 100644 (file)
@@ -55,7 +55,7 @@ all: $(generated_docs)
 install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
        $(MKDIR_P) -m 755 $(DESTDIR)$(sysconfdir)
        @if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
-         make install-config; \
+         ${MAKE} install-config; \
         fi
        $(MKDIR_P) -m 755 $(DESTDIR)$(docdir)
        for f in $(static_docs) $(toplevel_docs); do \
@@ -75,7 +75,7 @@ install-config:
 uninstall-hook:
        rm -rf $(DESTDIR)$(docdir)
        @if cmp --silent sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; then \
-         make uninstall-config; \
+         ${MAKE} uninstall-config; \
         else \
          echo; \
          echo " ** NOTE: Not uninstalling changed configuration file:"; \
@@ -87,7 +87,7 @@ uninstall-config:
        rm -f $(DESTDIR)$(sysconfdir)/ngircd.conf
 
 srcdoc:
-       make -C src srcdoc
+       ${MAKE} -C src srcdoc
 
 .PHONY: install-config uninstall-config srcdoc