Boilerplate makefile.

This commit is contained in:
Andrey Petrov
2013-07-31 14:37:42 -07:00
parent 95d4c36286
commit 50bc44259b
3 changed files with 43 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
*.pyc
.*
/*.log
+36
View File
@@ -0,0 +1,36 @@
## Python
REQUIREMENTS_FILE=requirements.txt
REQUIREMENTS_OUT=requirements.txt.log
all: requirements
requirements: virtualenv $(REQUIREMENTS_OUT)
$(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE)
pip install -r $(REQUIREMENTS_FILE) | tee -a $(REQUIREMENTS_OUT)
clean:
find . -name "*.py[oc]" -delete
find . -name "__pycache__" -delete
rm $(REQUIREMENTS_OUT)
virtualenv:
ifndef VIRTUAL_ENV
$(error No VIRTUAL_ENV defined)
endif
## Composer
COMPOSER_INDEX=indexer:UntaritIndexer
build: requirements index.json
composer build $(COMPOSER_INDEX)
serve: requirements index.json
composer serve $(COMPOSER_INDEX)
deploy: build
s3cmd sync build/ s3://untar.it/
+4
View File
@@ -0,0 +1,4 @@
https://github.com/shazow/composer/tarball/master
mako
markdown
mdx_smartypants