Skip to content
Snippets Groups Projects
Makefile 378 B
Newer Older
gabrielhdt's avatar
gabrielhdt committed
LP = lambdapi
hondet's avatar
hondet committed
LP_FLAGS = -v0 -w
LP_SRC  != find encodings paper -type f -name "*.lp"
gabrielhdt's avatar
gabrielhdt committed
LP_OBJ = ${LP_SRC:S/.lp$/.lpo/}

.SUFFIXES: .lpo .lp

all: ${LP_OBJ}

.lp.lpo:
hondet's avatar
hondet committed
	${LP} check ${LP_FLAGS} --gen-obj $<
gabrielhdt's avatar
gabrielhdt committed

.PHONY: install
hondet's avatar
hondet committed
install: lambdapi.pkg
hondet's avatar
hondet committed
	${LP} install lambdapi.pkg ${LP_SRC}
gabrielhdt's avatar
gabrielhdt committed

.PHONY: uninstall
uninstall:
hondet's avatar
hondet committed
	${LP} uninstall lambdapi.pkg
gabrielhdt's avatar
gabrielhdt committed

.PHONY: clean
clean:
gabrielhdt's avatar
gabrielhdt committed
	rm -f ${LP_OBJ}