Make cannot deal with spaces in filenames.

Is make wrong, or is it your filename?
This commit is contained in:
Simon Forman
2018-06-06 12:57:12 -07:00
parent 8a0a5e9f30
commit 81919c4bbe
77 changed files with 186976 additions and 10 deletions
+1 -10
View File
@@ -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