Skip to content

Commit

Permalink
eclib: clean Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl authored and bgregoir committed Jan 18, 2024
1 parent 3fa3a8e commit d27b0cb
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions eclib/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# -*- Makefile -*-

# --------------------------------------------------------------------
ECROOT ?=
ECCHECK ?=
ECARGS ?=
ECCONF := tests.config
XUNITOUT ?= xunit.xml
ECARGS ?=
CHECKS ?= jasmin

ifeq ($(ECCHECK),)
ifeq ($(ECROOT),)
ECCHECK := easycrypt runtest
else
PATH := ${ECROOT}:${PATH}
ECCHECK := $(ECROOT)/scripts/testing/runtest
endif
endif

# --------------------------------------------------------------------
DESTDIR ?=
PREFIX ?= /usr/local
Expand All @@ -26,18 +14,15 @@ SHRDIR := $(PREFIX)/share
INSTALL ?= ../scripts/install-sh

# --------------------------------------------------------------------
.PHONY: default usage check check-xunit install uninstall
.PHONY: default usage check install uninstall

default: check

usage:
@echo "Usage: make <target> where <target> in [check|check-xunit]" >&2
@echo "Usage: make <target> where <target> in [check|install|uninstall]" >&2

check:
$(ECCHECK) $(ECARGS) $(ECCONF) $(CHECKS)

check-xunit:
$(ECCHECK) $(ECARGS) --report=$(XUNITOUT) $(ECCONF) $(CHECKS)
easycrypt runtest $(ECARGS) $(ECCONF) $(CHECKS)

install:
$(INSTALL) -m 0755 -d $(DESTDIR)$(LIBDIR)/jasmin/easycrypt
Expand Down

0 comments on commit d27b0cb

Please sign in to comment.