This is what I see with make dist on the Mac: it fails attempting to add gvedit because there is no QMAKE, so the command to create the qMakefile is blank. Can the command itself be moved to the part of the build on the deployment host or installation?
QT_SELECT=5 -o qMakefile gvedit.pro
I tried configuring --without-qt --without-gvedit. Regardless, the make dist fails with this output from cmd/gvedit/Makefile:
(cd gvedit && /Applications/Xcode.app/Contents/Developer/usr/bin/make top_distdir=../../graphviz-10.0.0~dev.20231103.0952 distdir=../../graphviz-10.0.0~dev.20231103.0952/cmd/gvedit am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
I can run the failing command directly to illustrate:
make distdir-am
QT_SELECT=5 -o qMakefile gvedit.pro
/bin/sh: -o: command not found
make[6]: *** [qMakefile] Error 127
make[5]: *** [distdir] Error 2
make[4]: *** [distdir-am] Error 1
make[3]: *** [distdir] Error 2
make[2]: *** [distdir-am] Error 1
make[1]: *** [distdir] Error 2
make: *** [dist] Error 2