Skip to content

Commit af8937c

Browse files
authored
Makefile: add missing targets install and uninstall (#81)
1 parent 8e1bbb3 commit af8937c

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

‎Makefile‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,34 @@ EXCLUDE := _opam
66
EXCEPT := $(EXCLUDE:%=! -path './%/*')
77

88
LP := $(shell find . -name '*.lp' $(EXCEPT) -print)
9+
LPO := $(LP:%=%o)
910

1011
.PHONY: default
11-
default: $(LP:%=%o)
12+
default: $(LPO)
13+
14+
LP_OPTIONS = -c -v 0
1215

1316
%.lpo: %.lp
1417
@echo lambdapi check $< ...
15-
@lambdapi check -c -v 0 $<
18+
@lambdapi check $(LP_OPTIONS) $<
1619

1720
include $(LPO_MK)
1821

1922
$(LPO_MK): $(LP)
2023
@echo create/update $@ ...
21-
@lambdapi depend $(LP) > $@
24+
@lambdapi depend > $@
2225

2326
.PHONY: clean
2427
clean:
2528
-find . -name '*.lpo' $(EXCEPT) -delete
2629
-rm $(LPO_MK)
30+
31+
.PHONY: install
32+
install: lambdapi.pkg $(LP) $(LPO)
33+
@echo lambdapi install ...
34+
@lambdapi install
35+
36+
.PHONY: uninstall
37+
uninstall: lambdapi.pkg
38+
@echo lambdapi uninstall ...
39+
@lambdapi uninstall

0 commit comments

Comments
 (0)