Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use standard/versioned makefiles #170

Merged
merged 1 commit into from Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions django.mk
@@ -1,3 +1,4 @@
# VERSION=1.0.0
VE ?= ./ve
MANAGE ?= ./manage.py
FLAKE8 ?= $(VE)/bin/flake8
Expand Down Expand Up @@ -27,6 +28,9 @@ $(PY_SENTINAL): $(REQUIREMENTS) $(VIRTUALENV) $(SUPPORT_DIR)*
test: $(PY_SENTINAL)
$(MANAGE) jenkins --pep8-exclude=migrations --enable-coverage --coverage-rcfile=.coveragerc

parallel-tests: $(PY_SENTINAL)
$(MANAGE) test --parallel

flake8: $(PY_SENTINAL)
$(FLAKE8) $(PY_DIRS) --max-complexity=$(MAX_COMPLEXITY)

Expand Down
1 change: 1 addition & 0 deletions js.mk
@@ -1,3 +1,4 @@
# VERSION=1.0.0
# expect JS_FILES to be set from the main Makefile, but default
# to everything in media/js otherwise.
JS_FILES ?= media/js
Expand Down
12 changes: 12 additions & 0 deletions make.mk
@@ -0,0 +1,12 @@
# VERSION=1.0.0

GITHUB_BASE ?= https://raw.githubusercontent.com/ccnmtl/makefiles/master/
WGET ?= wget
WGET_FLAGS ?= "-O"

update_makefiles:
for f in $$(grep -l "^# VERSION=" *.mk) ; do \
$(WGET) $(GITHUB_BASE)$$f $(WGET_FLAGS) $$f ; \
done

.PHONY: update_makefiles