Skip to content
Snippets Groups Projects
Makefile 551 B
Newer Older
Gabriel's avatar
Gabriel committed
PVS2DK = ../pvs2dk.sh
Gabriel's avatar
Gabriel committed
LP     = lambdapi
Gabriel's avatar
Gabriel committed

THEORIES != grep -v -E '^-|\#' theories
hondet's avatar
hondet committed
PVSPATH  ?=
Gabriel's avatar
Gabriel committed

all: dummy ${THEORIES:C/$/.lpo/}

.PHONY: dummy
dummy:
	./mk_dummy.sh

translate: dummy ${THEORIES:C/$/.lp/}

# For each theory, translate it and apply a patch if it exists
.for th in ${THEORIES}
${th}.lp:
	PVSPATH=${PVSPATH} ${PVS2DK} -f ${PVSPATH}/lib/prelude.pvs -t ${.TARGET:R} \
-o ${PWD}/${.TARGET} > /dev/null
Gabriel's avatar
Gabriel committed
	-[ -r "${.TARGET}.patch" ] && patch < "${.TARGET}.patch"
	-[ -r "${.TARGET}.sh" ] && sh "${.TARGET}.sh"
.endfor

.include "../lambdapi.mk"