Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Apr 30, 2024
1 parent 2db5c59 commit 0a22cf9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ zenon_modulo: lambdapi

.PHONY: lpoclean
lpoclean:
@find . -type f -name "*.lpo" -exec rm {} \;
@find . -type f -name '*.lpo' -delete

.PHONY: clean
clean: lpoclean
Expand All @@ -99,8 +99,7 @@ distclean: clean
@cd libraries && ./iprover.sh clean
@cd libraries && ./dklib.sh clean
@cd libraries && ./zenon_modulo.sh clean
@find . -type f -name "*~" -exec rm {} \;
@find . -type f -name "*.gv" -exec rm {} \;
@find . -type f -name '*~' -delete

.PHONY: fullclean
fullclean: distclean
Expand Down Expand Up @@ -171,10 +170,18 @@ uninstall_vim_mode:
build-vscode-extension:
cd editors/vscode && make && mkdir extensionFolder && vsce package -o extensionFolder

VSCE = $(shell which vsce)
JQ = $(shell which jq)

ifneq ($(VSCE),)
ifneq ($(JQ),)
EXT = $(shell vsce show --json deducteam.lambdapi 2>/dev/null | jq '.versions[0]' | jq '.version')
.PHONY: publish-vscode-extension
publish-vscode-extension:
ifeq ($(shell vsce show --json deducteam.lambdapi | jq '.versions[0]' | jq '.version'), $(shell cat editors/vscode/package.json | jq '.version'))
ifeq ($(EXT), $(shell cat editors/vscode/package.json | jq '.version'))
echo "extension already exists. Skip"
else
cd editors/vscode && vsce publish -p ${PAT}
endif
endif
endif
endif

0 comments on commit 0a22cf9

Please sign in to comment.