Commit 6c88994e by Zachary Snow

switch to using stack

parent 9fd79068
*.swp
dist/
bin/
.stack-work/
......@@ -2,18 +2,10 @@
all: sv2v
Language/SystemVerilog/Parser/Lex.hs: Language/SystemVerilog/Parser/Lex.x
alex -g Language/SystemVerilog/Parser/Lex.x -o Language/SystemVerilog/Parser/Lex.hs
Language/SystemVerilog/Parser/Parse.hs: Language/SystemVerilog/Parser/Parse.y
happy -agc Language/SystemVerilog/Parser/Parse.y -o Language/SystemVerilog/Parser/Parse.hs
sv2v: Language/SystemVerilog/Parser/Lex.hs Language/SystemVerilog/Parser/Parse.hs
cabal build
sv2v:
mkdir -p bin
cp dist/build/sv2v/sv2v bin/sv2v
stack install --allow-different-user --install-ghc --local-bin-path bin
clean:
rm -rfy bin/sv2v
rm -f Language/SystemVerilog/Parser/Lex.hs
rm -f Language/SystemVerilog/Parser/Parse.hs
stack clean
rm -rf bin
resolver: lts-12.5
packages:
- .
......@@ -45,6 +45,9 @@ library
executable sv2v
default-language: Haskell2010
main-is: sv2v.hs
build-tools:
alex >= 3 && < 4,
happy >= 1 && < 2
build-depends:
array,
base
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment