Make cannot deal with spaces in filenames.
Is make wrong, or is it your filename?
This commit is contained in:
+1
-10
@@ -1,16 +1,7 @@
|
||||
#docs := $(wildcard *.ipynb)
|
||||
#docs_html := $(patsubst %.ipynb,%.html,$(docs))
|
||||
|
||||
.PHONY: poop nospaces yesspaces
|
||||
|
||||
# https://stackoverflow.com/a/45531875
|
||||
# Make cannot handle spaces in filenames, so temporarily rename them
|
||||
nospaces:
|
||||
rename -v 's/ /%20/g' *\ *
|
||||
|
||||
# After Make is done, rename files back to having spaces
|
||||
yesspaces:
|
||||
rename -v 's/%20/ /g' *%20*
|
||||
.PHONY: poop
|
||||
|
||||
|
||||
poop: *.ipynb
|
||||
|
||||
Reference in New Issue
Block a user