Skip to content

Commit

Permalink
docs: Use pattern rule to execute generator scripts (PrincetonUnivers…
Browse files Browse the repository at this point in the history
…ity#3087)

find -exec does not propagate errors.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely authored Oct 30, 2024
1 parent 529c967 commit bfe4461
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ gh-pages:
git ci -m "Generated gh-pages for `git log devel -1 --pretty=short --abbrev-commit`" && git push origin gh-pages ; git checkout devel
make clean

source/generator_scripts/%: source/generator_scripts/%.py
python $<

GENERATED=$(patsubst %.py, %, $(shell find source/generator_scripts -name "*.py"))

.PHONY: generated
generated:
find source/generator_scripts -name "*.py" -exec python {} \;
generated: $(GENERATED)

0 comments on commit bfe4461

Please sign in to comment.