Commit 7774d21c by Őry Máté

django: fix make deps

parent 61ca1266
SHELL := /bin/bash SHELL := /bin/bash
jsfiles += one/static/script/cloud.min.js
jsfiles += one/static/script/util.min.js
jsfiles += one/static/script/store.min.js
cssfiles += one/static/style/style.css
default: migrate collectstatic mo less uglifyjs restart default: migrate generatestatic collectstatic mo restart
pulldef: pull default pulldef: pull default
pull: pull:
...@@ -14,6 +18,8 @@ po: ...@@ -14,6 +18,8 @@ po:
migrate: migrate:
./manage.py migrate ./manage.py migrate
generatestatic: $(jsfiles) $(cssfiles)
collectstatic: collectstatic:
./manage.py collectstatic --noinput ./manage.py collectstatic --noinput
...@@ -24,10 +30,8 @@ mo: ...@@ -24,10 +30,8 @@ mo:
restart: restart:
sudo /etc/init.d/apache2 reload || sudo restart django sudo /etc/init.d/apache2 reload || sudo restart django
less: %.min.js: %.js
lessc one/static/style/style.less > one/static/style/style.css uglifyjs $< > $@
uglifyjs: %.css: %.less
uglifyjs one/static/script/cloud.js > one/static/script/cloud.min.js lessc one/static/style/style.less > one/static/style/style.css
uglifyjs one/static/script/util.js > one/static/script/util.min.js
uglifyjs one/static/script/store.js > one/static/script/store.min.js
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment