Issue #27229: Comment in middle of shell command fails on BSD and OS X
This commit is contained in:
parent
ab1455829b
commit
ed722d9e39
|
@ -682,10 +682,10 @@ Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule
|
||||||
|
|
||||||
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
|
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
|
||||||
@$(MKDIR_P) Include
|
@$(MKDIR_P) Include
|
||||||
|
# Avoid copying the file onto itself for an in-tree build
|
||||||
if test "$(cross_compiling)" != "yes"; then \
|
if test "$(cross_compiling)" != "yes"; then \
|
||||||
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
||||||
else \
|
else \
|
||||||
# Avoid copying the file onto itself for an in-tree build \
|
|
||||||
cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \
|
cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \
|
||||||
mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \
|
mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue