1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-05 15:31:42 +00:00
sitc/Makefile

12 lines
317 B
Makefile
Raw Normal View History

2019-03-06 11:02:49 +00:00
FOLDER:=.
2019-03-28 13:13:22 +00:00
ERROR:=255
2019-03-06 11:02:49 +00:00
exec:
2019-03-28 13:13:22 +00:00
find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'jupyter nbconvert --execute --ClearOutputPreprocessor.enabled=True --inplace $$0 || exit $(ERROR)'
2019-03-06 11:02:49 +00:00
clean:
2019-03-28 13:13:22 +00:00
find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'nbstripout $$0 || exit $(ERROR)'
2019-03-06 11:02:49 +00:00
.PHONY: exec clean