From 9d1b88dfeabfa7a798932f336037552f8815839d Mon Sep 17 00:00:00 2001 From: Oscar Araque Date: Thu, 28 Mar 2019 14:13:22 +0100 Subject: [PATCH] Makefile updated --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5cfd73d..dc73ba3 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ FOLDER:=. +ERROR:=255 exec: - find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'jupyter nbconvert --execute --ClearOutputPreprocessor.enabled=True --inplace $$0 || exit 255' + find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'jupyter nbconvert --execute --ClearOutputPreprocessor.enabled=True --inplace $$0 || exit $(ERROR)' clean: - find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace $$0 || exit 255' + find $(FOLDER) -iname '*.ipynb' -print0 | xargs -n 1 -0 sh -c 'nbstripout $$0 || exit $(ERROR)' .PHONY: exec clean