mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-10 20:00:27 +00:00
Invoke cocmd.com as a shell script when necessary
This commit is contained in:
parent
6ca5ab4680
commit
0c67326405
1 changed files with 8 additions and 0 deletions
8
Makefile
8
Makefile
|
@ -59,7 +59,15 @@
|
||||||
#
|
#
|
||||||
# build/config.mk
|
# build/config.mk
|
||||||
|
|
||||||
|
# Some versions of make can't invoke the bundled
|
||||||
|
# cocmd.com directly. If we can invoke it, use it
|
||||||
|
# directly as the shell. Otherwise, invoke it as a
|
||||||
|
# shell script to work around this.
|
||||||
|
ifeq ($((build/bootstrap/cocmd.com)),build/bootstrap/cocmd.com: error: wrong number of args)
|
||||||
SHELL = build/bootstrap/cocmd.com
|
SHELL = build/bootstrap/cocmd.com
|
||||||
|
else
|
||||||
|
.SHELLFLAGS = build/bootstrap/cocmd.com -c
|
||||||
|
endif
|
||||||
MAKEFLAGS += --no-builtin-rules
|
MAKEFLAGS += --no-builtin-rules
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue