forked from cdaddr/cow-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 817 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
41
# cow-blog's Makefile
LEIN=lein
PROJECT=cow-blog
DEFAULT_SITE=server
VERSION=$(shell cat .version)
test:
$(LEIN) test
repl:
$(LEIN) repl
start:
$(LEIN) daemon start $(DEFAULT_SITE)
stop:
$(LEIN) daemon stop $(DEFAULT_SITE)
restart:
$(LEIN) daemon stop $(DEFAULT_SITE)
$(LEIN) daemon start $(DEFAULT_SITE)
deps:
$(LEIN) deps
dist: test
git tag -a -f -m "Making release $(VERSION)" rel-$(VERSION)
git archive --prefix=$(PROJECT)-$(VERSION)/ rel-$(VERSION) | bzip2 > ../$(PROJECT)-$(VERSION).tar.bz2
deploy: dist
scp ../$(PROJECT)-$(VERSION).tar.bz2 deploy.sh $(DEPLOYTO):
ssh $(DEPLOYTO) sh ./deploy.sh $(PROJECT)-$(VERSION)
./increment_version.py .version
git add .version
git commit -m "Version update"
### Local variables: ***
### compile-command:"make" ***
### tab-width: 2 ***
### End: ***