-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
39 lines (29 loc) · 640 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SHELL=/usr/bin/env bash
EMACS ?= emacs
EASK ?= eask
test: build compile checkdoc lint
build:
$(EASK) package
$(EASK) install
compile:
@echo "Compiling..."
$(EASK) compile
checkdoc:
$(EASK) lint checkdoc
lint:
@echo "package linting..."
$(EASK) lint package
clean:
$(EASK) clean all
tag:
$(eval TAG := $(filter-out $@,$(MAKECMDGOALS)))
sed -i "s/;; Version: [0-9].[0-9].[0-9]/;; Version: $(TAG)/g" lsp-metals.el
git add lsp-metals.el
git commit -m "Bump lsp-metals: $(TAG)"
git tag $(TAG)
git push origin HEAD
git push origin --tags
# Allow args to make commands
%:
@:
.PHONY : test compile checkdoc lint clean tag