forked from guilhermechapiewski/simple-db-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·44 lines (36 loc) · 1.21 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
# Makefile for simple-db-migrate
help:
@echo
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean to clean garbage left by builds and installation"
@echo " compile to compile .py files (just to check for syntax errors)"
@echo " test to execute all simple-db-migrate tests"
@echo " install to install simple-db-migrate"
@echo " build to build without installing simple-db-migrate"
@echo " dist to create egg for distribution"
@echo " publish to publish the package to PyPI"
@echo
clean:
@echo "Cleaning..."
@rm -rf build dist simple_db_migrate.egg-info *.pyc **/*.pyc *~ *.migration *.foo
@#removing test temp files
@rm -rf `date +%Y`*
compile: clean
@echo "Compiling source code..."
@rm -rf simple_db_migrate/*.pyc
@rm -rf tests/*.pyc
@python -tt -m compileall simple_db_migrate
@python -tt -m compileall tests
test: compile
@make clean
@echo "Starting tests..."
@nosetests -s --verbose --with-coverage --cover-erase --cover-package=simple_db_migrate tests
@make clean
install:
@/usr/bin/env python ./setup.py install
build:
@/usr/bin/env python ./setup.py build
dist: clean
@python setup.py sdist
publish: dist
@python setup.py sdist upload