galoisinc / arm-asl-parser Goto Github PK
View Code? Open in Web Editor NEWParsing tools for ARM's ASL
License: BSD 3-Clause "New" or "Revised" License
Parsing tools for ARM's ASL
License: BSD 3-Clause "New" or "Revised" License
This part of the Makefile
requires bash
syntax to work due to the use of [[ ... ]]
, which is a bash
builtin:
Lines 67 to 71 in afbeff2
Despite this, the Makefile
does not declare an explicit dependency on bash
. As a result, it will fail if Makefile
defaults to /bin/sh
, as it does on my machine:
$ make all
cd xml && tar zxf A64_v85A_ISA_xml_00bet9.tar.gz && tar zxf ISA_v85A_A64_xml_00bet9.tar.gz
cd xml && tar zxf AArch32_v85A_ISA_xml_00bet9.tar.gz && tar zxf ISA_v85A_AArch32_xml_00bet9.tar.gz
cd asl-parser-java && ./gradlew -q run --args="defs /home/rscott/Documents/Hacking/Haskell/asl-translator/submodules/arm-asl-parser/asl/arm_defs.asl" > /home/rscott/Documents/Hacking/Haskell/asl-translator/submodules/arm-asl-parser/asl-parsed/arm_defs.sexpr && [[ -s /home/rscott/Documents/Hacking/Haskell/asl-translator/submodules/arm-asl-parser/asl-parsed/arm_defs.sexpr ]] || (rm -f /home/rscott/Documents/Hacking/Haskell/asl-translator/submodules/arm-asl-parser/asl-parsed/arm_defs.sexpr && exit 1)
/bin/sh: 1: [[: not found
make: *** [Makefile:76: asl-parsed/arm_defs.sexpr] Error 1
The solution is simple: declare an explicit bash
dependency like so:
diff --git a/Makefile b/Makefile
index 44d8f50..82f8f99 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+SHELL := /bin/bash
+
.PHONY: default clean realclean
default: all
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.