abinfo "Unsetting problematic environment variables..."
unset STRIP

abinfo "Running Makefile..."
# Export CXXFLAGS and other configuration
make everything \
    "${MAKE_DEF[@]}" \
    "${MAKE_AFTER[@]}" \
    CXXFLAGS="${CFLAGS[@]}" \
    SYSCONFDIR=/etc

abinfo "Installing to DESTDIR..."
# Note: `install-systemd' is not included as part of the `install' target.
#
# Link: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/tree/Makefile?h=mdadm-4.6#n307
make install install-systemd \
    DESTDIR="${PKGDIR}" \
    "${MAKE_INSTALL_DEF[@]}" \
    "${MAKE_AFTER[@]}"
