Skip to content

Commit 71f8a0b

Browse files
committed
Fix tabs in Makefile
1 parent fa7fed3 commit 71f8a0b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ LESSONS_DIR = lessons
66
GENERATED_LESSONS_DIR = book/lessons
77

88
_requirements.installed:
9-
pip install -q -r requirements.txt
10-
touch _requirements.installed
9+
pip install -q -r requirements.txt
10+
touch _requirements.installed
1111

1212
MARKDOWNS = $(wildcard $(LESSONS_DIR)/*.md)
1313
MD_OUTPUTS = $(patsubst $(LESSONS_DIR)/%.md, $(GENERATED_LESSONS_DIR)/%.md, $(MARKDOWNS))
@@ -16,25 +16,25 @@ NOTEBOOKS = $(patsubst %.md, %.ipynb, $(MD_OUTPUTS))
1616
.SECONDARY: $(MD_OUTPUTS) $(NOTEBOOKS)
1717

1818
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons book/lessons/images
19-
# This does not work, due to bug in notedown; see https://github.com/aaren/notedown/issues/53
20-
#notedown --match=python --precode='%matplotlib inline' $< > $@
21-
notedown --match=python $< > $@
22-
jupyter nbconvert --execute --inplace $@ --ExecutePreprocessor.timeout=-1
19+
# This does not work, due to bug in notedown; see https://github.com/aaren/notedown/issues/53
20+
#notedown --match=python --precode='%matplotlib inline' $< > $@
21+
notedown --match=python $< > $@
22+
jupyter nbconvert --execute --inplace $@ --ExecutePreprocessor.timeout=-1
2323

2424
%.md:%.ipynb
25-
jupyter nbconvert --to=mdoutput --output="$(notdir $@)" --output-dir=$(GENERATED_LESSONS_DIR) $<
25+
jupyter nbconvert --to=mdoutput --output="$(notdir $@)" --output-dir=$(GENERATED_LESSONS_DIR) $<
2626
# $(eval NBSTRING := [📂 Download lesson notebook](.\/$(basename $(notdir $@)).ipynb)\n\n)
2727
# sed -i'.bak' '1s/^/$(NBSTRING)/' $@
2828

2929
book/lessons:
30-
mkdir -p book/lessons
30+
mkdir -p book/lessons
3131

3232
book/lessons/images:
33-
ln -s ${PWD}/lessons/images ${PWD}/book/lessons/images
33+
ln -s ${PWD}/lessons/images ${PWD}/book/lessons/images
3434

3535
html: | _requirements.installed $(NOTEBOOKS) $(MD_OUTPUTS)
36-
@export SPHINXOPTS=-W; make -C book html
37-
cp $(GENERATED_LESSONS_DIR)/*.ipynb book/build/html/lessons/
36+
@export SPHINXOPTS=-W; make -C book html
37+
cp $(GENERATED_LESSONS_DIR)/*.ipynb book/build/html/lessons/
3838

3939
clean:
40-
rm -rf $(GENERATED_LESSONS_DIR)/*
40+
rm -rf $(GENERATED_LESSONS_DIR)/*

0 commit comments

Comments
 (0)