Skip to content

Instantly share code, notes, and snippets.

@Ignas
Created September 15, 2014 04:54
Show Gist options
  • Save Ignas/9ae9d0fd2c7c62095971 to your computer and use it in GitHub Desktop.
Save Ignas/9ae9d0fd2c7c62095971 to your computer and use it in GitHub Desktop.
hash_path ?= $(shell md5 -q requirements.txt)
bin/django: var/assets/jquery/bower.json bin/buildout buildout.cfg versions.cfg setup.py .hashes/${hash_path}
find src -type f -iname '*.pyc' -exec rm {} +
bin/buildout
touch -c $@
.hashes/${hash_path}:
mkdir -p .hashes
grep-for-hash-in-requirement-freeze || run-whatever-freezes-requirements-and-appends-the-hash
touch .hashes/${hash_path}
@Ignas
Copy link
Author

Ignas commented Sep 15, 2014

oh and add .hashes to .gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment