From 1ab55c481546840e009f0e8850c7d9d94867472a Mon Sep 17 00:00:00 2001 From: usagirei Date: Sat, 21 May 2016 20:55:08 -0300 Subject: [PATCH] Fix xxd failing to run when path has spaces --- make_base | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_base b/make_base index 59e568f..edbf1af 100644 --- a/make_base +++ b/make_base @@ -269,7 +269,7 @@ define shader-as $(eval CURBIN := $(patsubst %.shbin.c,%.shbin,$@)) $(PICASSO) -o $(CURBIN) $1 @cd $(dir $(CURBIN)); \ - xxd -i $(notdir $(CURBIN)) $(CURDIR)/$@ + xxd -i $(notdir $(CURBIN)) "$(CURDIR)/$@" echo "extern const u8" `(echo $(notdir $(CURBIN)) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h echo "extern const u32" `(echo $(notdir $(CURBIN)) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_len";" >> `(echo $(CURBIN) | tr . _)`.h endef @@ -443,7 +443,7 @@ $(BUILD_DIR)/%.bin.o: $(BUILD_DIR)/%.bin.c $(BUILD_DIR)/%.bin.c: %.bin @echo $@ @cd $(> `(echo $(BUILD_DIR)/$< | tr . _)`.h @echo "extern const u32" `(echo $(> `(echo $(BUILD_DIR)/$< | tr . _)`.h