-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 884 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
42
43
44
45
46
47
48
49
# Magical make incantations...
.DEFAULT_GOAL := all
.PHONY: assets build clean deps dist run installdb
REV=$(shell git rev-parse --short HEAD)
TIMESTAMP=$(shell date +'%s')
RUN=foreman run
SETUP=$(RUN) python setup.py
MANAGE=$(RUN) python manage.py
all: deps assets
assets:
@$(MANAGE) assets rebuild
build: clean assets
@$(SETUP) build
clean:
@find . -name "*.py[co]" -exec rm -rf {} \;
@$(SETUP) clean
@rm -rf dist build
deps:
@npm link
@$(SETUP) dev
dist: clean assets
@$(SETUP) sdist
run:
@foreman start -f Procfile.dev
installdb:
@$(MANAGE) installdb
upload: upload-dev
upload-dev: clean assets
@$(SETUP) egg_info --tag-build='-dev.$(TIMESTAMP).$(REV)' sdist upload -r oldfieldio
upload-nightly: clean assets
@$(SETUP) egg_info --tag-date --tag-build='-dev' sdist upload -r oldfieldio
upload-release: clean assets
@$(SETUP) sdist upload -r oldfieldio