Skip to content

Commit

Permalink
Makefile: remove LIB_ROOT (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Nov 30, 2023
1 parent 076d9a8 commit 0e0f265
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
VIMDIR = $(HOME)/.vim
EMACS = $(shell which emacs)

LIB_ROOT := $(shell\
if test -n "$(LAMBDAPI_LIB_ROOT)";\
then echo $(LAMBDAPI_LIB_ROOT);\
else\
if test -n "$(OPAM_SWITCH_PREFIX)";\
then echo $(OPAM_SWITCH_PREFIX);\
else echo /usr/local;\
fi;\
fi)/lib/lambdapi/lib_root

#### Compilation (binary, library and documentation) #########################

.PHONY: default
Expand All @@ -35,7 +25,7 @@ bnf:
#### Unit tests and sanity check #############################################

.PHONY: tests
tests: lambdapi $(LIB_ROOT)
tests: lambdapi
@dune runtest
@dune exec --only-packages lambdapi -- tests/runtests.sh
@dune exec --only-packages lambdapi -- tests/dtrees.sh
Expand Down Expand Up @@ -123,11 +113,8 @@ fullclean: distclean

#### Installation and release targets ########################################

$(LIB_ROOT):
mkdir -p $@

.PHONY: install
install: install_lambdapi $(LIB_ROOT)
install: install_lambdapi

.PHONY: uninstall
uninstall: uninstall_lambdapi
Expand Down

0 comments on commit 0e0f265

Please sign in to comment.