-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails if $(CURDIR) contains spaces #5
Comments
Hmm.. my first attempt at fixing this in baf8064 does not seem to have fixed the problem. It appears that automake at least doesn't escape some things when it runs commands later on. i.e.: make install-data-hook (renamed the directory to "avr32 toolchain"). I think based on trying double quoting etc, I might just need to escape the spaces myself. It seems like there's a bug in automake's build system that causes it not to escape properly. |
Spaces in directory paths can be escaped. In Makefile this is a bit magic. First you have to get space into a string
Now this can be used in
Edit: Seems like this will work too
|
you completely lost me... :-( |
@ilg-ul |
the initial issue is more than 8 years old, I completely forgot what this is all about (no longer using AVRs), but I hope the author still remembers details and hopefully can assist you. |
@ilg-ul thanks :) |
You can try the following as I did. Replace spaces with backslash spaces space := $(subst ,, )
CURDIR := $(subst $(space),\$(space),$(CURDIR)) |
Or add a warning to not have spaces: ifneq (1,$(words $(CURDIR)))
$(error Containing path cannot contain whitespace: '$(CURDIR)')
endif |
I moved the entire build environment to a new folder named "No Backup" (ignored by Time Machine) and then I tried again to run the build.
It failed, and it left another folder called "No", so I guess the SUPP_PREFIX needs some quotes to protect the space.
Liviu
The text was updated successfully, but these errors were encountered: