Commit 6c88994e by Zachary Snow

switch to using stack

parent 9fd79068
*.swp *.swp
dist/ dist/
bin/ bin/
.stack-work/
...@@ -2,18 +2,10 @@ ...@@ -2,18 +2,10 @@
all: sv2v all: sv2v
Language/SystemVerilog/Parser/Lex.hs: Language/SystemVerilog/Parser/Lex.x sv2v:
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
mkdir -p bin mkdir -p bin
cp dist/build/sv2v/sv2v bin/sv2v stack install --allow-different-user --install-ghc --local-bin-path bin
clean: clean:
rm -rfy bin/sv2v stack clean
rm -f Language/SystemVerilog/Parser/Lex.hs rm -rf bin
rm -f Language/SystemVerilog/Parser/Parse.hs
resolver: lts-12.5
packages:
- .
...@@ -45,6 +45,9 @@ library ...@@ -45,6 +45,9 @@ library
executable sv2v executable sv2v
default-language: Haskell2010 default-language: Haskell2010
main-is: sv2v.hs main-is: sv2v.hs
build-tools:
alex >= 3 && < 4,
happy >= 1 && < 2
build-depends: build-depends:
array, array,
base 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