Skip to content

Commit

Permalink
Update makefile to work with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Yey007 committed Apr 13, 2024
1 parent 34c3ab8 commit 4207137
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.PHONY: build
build:
@rm -f ./main
dune build
opam exec -- dune build
@cp _build/install/default/bin/cs3110_compiler ./main
@chmod u+x ./main

.PHONY: test
test: build
dune test
opam exec -- dune test

.PHONY: clean
clean:
dune clean
opam exec -- dune clean
@rm -rf ./main
2 changes: 1 addition & 1 deletion test/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(test
(name test_cs3110_compiler)
(libraries cs3110_compiler ounit2 alcotest)
(libraries cs3110_compiler alcotest)
(deps
(source_tree snapshots)))

0 comments on commit 4207137

Please sign in to comment.