Skip to content
Snippets Groups Projects
Commit 1810fa62 authored by rds's avatar rds
Browse files

make sure we get the root Makefile

parent 1ad32f5a
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,9 @@ if [ "x$ZMAP_MASTER_BUILD_DOXYGEN_DOCS" == "x$ZMAP_TRUE" ]; then
zmap_message_out "Running make docs ..."
# need to find a Makefile to run make against
MAKEFILE_LOC=$(find . -name Makefile | head -1)
MAKEFILE_LOC=$(find . -name Makefile -type f | \
perl -wlne 'my $c = $_ =~ tr!/!/!; print "$c $_"' | sort -u | \
perl -wlane 'print $F[1]' | head -1)
SAVE_DIR=$(pwd)
zmap_cd $(dirname $MAKEFILE_LOC)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment