Makefile (distcheck): Propagate jobserver parameters to the test build.
[preload-hacks] / Makefile
index f8dadc5..f1395ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,16 +44,6 @@ man1dir                       = ${mandir}/man1
 DESTDIR                         =
 
 ###--------------------------------------------------------------------------
-### Quiet building.
-
-## Verbosity.
-V                      ?= 0
-v_tag                   = $(call v_tag_$V,$1)
-v_tag_0                         = @printf "  %-8s %s\n" "$1" "$@";
-V_AT                    = $(V_AT_$V)
-V_AT_0                  = @
-
-###--------------------------------------------------------------------------
 ### Build parameters.
 
 ## Mess with these if you like.
@@ -74,6 +64,16 @@ REAL_CFLAGS           = $(CFLAGS) -fPIC -MD
 REAL_LDFLAGS            = $(LDFLAGS) -shared
 
 ###--------------------------------------------------------------------------
+### Quiet building.
+
+## Verbosity.
+V                       = 0
+v_tag                   = $(call v_tag_$V,$1)
+v_tag_0                         = @printf "  %-8s %s\n" "$1" "$@";
+V_AT                    = $(V_AT_$V)
+V_AT_0                  = @
+
+###--------------------------------------------------------------------------
 ### Main targets.
 
 ## noip
@@ -185,7 +185,7 @@ distdir:
              d=$${i%/*} && $(MKDIRS) $(distdir)/$$d || exit 1 \
              ;; \
          esac; \
-         ln $$i $(distdir)/$$i || exit 1; \
+         cp $$i $(distdir)/$$i || exit 1; \
        done
 .PHONY: distdir
 
@@ -197,7 +197,7 @@ dist: distdir
 distcheck: dist
        rm -rf _distcheck
        mkdir _distcheck
-       cd _distcheck && \
+       +cd _distcheck && \
        tar xvfz ../$(DISTTAR) && \
        cd $(distdir) && \
        make && \