forked from r-type/vice3.0-libretro
-
Notifications
You must be signed in to change notification settings - Fork 71
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
[[ not valid in /bin/sh #498
Comments
Sure, let's see it. |
EDIT: or, a bigger change is to drop |
Ah, I thought I tried all possibilities, but apparently the thing works fine with just singles: diff --git a/Makefile b/Makefile
index 8080489ba..61a5d2830 100644
--- a/Makefile
+++ b/Makefile
@@ -461,21 +461,21 @@ endif
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
- @if [[ $(SILENT) -ne 1 ]]; then\
+ @if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CC $<),);\
fi
$(CC) $(CFLAGS) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
- @if [[ $(SILENT) -ne 1 ]]; then\
+ @if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CXX $<),);\
fi
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(OBJDIR)/%.o: %.cc
@mkdir -p $(dir $@)
- @if [[ $(SILENT) -ne 1 ]]; then\
+ @if [ $(SILENT) -ne 1 ]; then\
$(if $@, $(shell echo echo CXX $<),);\
fi
$(CXX) $(CXXFLAGS) -c -o $@ $< So should we do this instead? |
Yes, this is simpler. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Ubuntu 23.04 which links
/bin/sh
(the shell used by make, see https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html) todash
which does not support[[
.The solution is to force make to use
bash
withSHELL = /bin/bash
If I send a PR, would you accept it? Better solution?
The text was updated successfully, but these errors were encountered: