-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
40 lines (31 loc) · 801 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
40
EMACS ?= emacs
EASK ?= eask
build:
$(EASK) install-deps
$(EASK) package
$(EASK) install
ci: clean build compile checkdoc lint
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" jet.el
sed -i "s/jet-version-string \"[0-9]\+.[0-9]\+.[0-9]\+\"/jet-version-string \"$(TAG)\"/g" jet.el
sed -i "s/\"jet\" \"[0-9]\+.[0-9]\+.[0-9]\+\"/\"jet\" \"$(TAG)\"/g" Eask
git add jet.el Eask
git commit -m "Bump jet: $(TAG)"
git tag $(TAG)
git push origin HEAD
git push origin --tags
# Allow args to make commands
%:
@:
.PHONY : ci compile checkdoc lint clean tag