forked from atykhonov/google-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (42 loc) · 1.24 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY : all test unit-test ecukes
EMACS ?= emacs
SRC = $(filter-out %-pkg.el, $(wildcard *.el reporters/*.el))
ELC = $(SRC:.el=.elc)
CASK ?= cask
PKG_DIR := $(shell $(CASK) package-directory)
FEATURES = $(wildcard features/*.feature)
VERSION = 0.12.0
TARGET_DIR = google-translate-$(VERSION)
all: test marmalade tag
test:
$(MAKE) unit-test
$(MAKE) ecukes
unit-test:
$(CASK) exec ert-runner
$(PKG_DIR):
Cask
$(CASK) install
touch $@
ecukes:
$(CASK) exec ecukes --reporter magnars --script $(FEATURES) --no-win
marmalade: marmalade-tar marmalade-upload marmalade-rm
marmalade-tar:
mkdir $(TARGET_DIR)
cp google-translate-core-ui.el $(TARGET_DIR)
cp google-translate-core.el $(TARGET_DIR)
cp google-translate-default-ui.el $(TARGET_DIR)
cp google-translate-query-auto-complete.el $(TARGET_DIR)
cp google-translate-smooth-ui.el $(TARGET_DIR)
cp google-translate.el $(TARGET_DIR)
cp README.md $(TARGET_DIR)
cp google-translate-pkg.el $(TARGET_DIR)
tar -cf google-translate-$(VERSION).tar $(TARGET_DIR)
marmalade-upload:
marmalade-upload -u atykhonov google-translate-$(VERSION).tar || true
marmalade-rm:
rm google-translate-$(VERSION).tar
rm -rf $(TARGET_DIR)
version:
@echo $(VERSION)
tag:
git tag v$(VERSION) && git push origin --tags