Skip to content

Commit

Permalink
Use GNU make's wildcard expansion instead of the shell's, because the…
Browse files Browse the repository at this point in the history
… shell will leave a export/*.glob item in there if there are no export/*.glob files.

The Makefile only works with gmake anyway.
It would be possible to use option nullglob in bash, but many systems now use dash.
  • Loading branch information
monniaux committed Oct 29, 2024
1 parent 6da3547 commit 2b90ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ documentation: $(FILES)
mkdir -p doc/html
rm -f doc/html/*.html
coq2html -d doc/html/ -base compcert -short-names \
$(patsubst %, %/*.glob, $(DIRS)) \
$(wildcard $(patsubst %, %/*.glob, $(DIRS))) \
$(filter-out doc/coq2html cparser/Parser.v, $^)

tools/ndfun: tools/ndfun.ml
Expand Down

0 comments on commit 2b90ded

Please sign in to comment.