-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.03 KB
/
Makefile
File metadata and controls
43 lines (33 loc) · 1.03 KB
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
CURRENT = $(shell git rev-parse --short HEAD)
all: help
clean:
@find . -name *.py? -delete
@rm -rf build dist *.egg-info
help:
@echo "Please use \`make <target>\` where target one of"
@echo " clean to cleanup the package directory"
@echo " install to install requirements into environment"
@echo " serv to run dev server"
@echo " test to run the test suite"
@echo " watch to enable livereload on assets changes"
@echo " freeze to freeze applicaion"
@echo " gh-pages to update gh-pages"
install:
@pip install -r requirements/main.txt
serv:
@python setup.py serve -d -r -p 5008
freeze:
@python setup.py freeze
test:
@python setup.py test -q
watch:
@grunt watch
gh-pages:
git checkout -b gh-pages-$(CURRENT)
APP_CONFIG=$(PWD)/app/github.cfg python setup.py freeze
git add -f gh-pages
git commit --allow-empty -m "Update gh-pages at $(CURRENT)"
git push origin `git subtree split --prefix gh-pages`:gh-pages --force
git checkout -
git branch -D gh-pages-$(CURRENT)
.PHONY: clean help install serv test watch freeze gh-pages