diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,11 +1,17 @@ | |||
1 | WEB_ROOT=/srv/www/crute.org/mike/htdocs | 1 | WEB_ROOT=/srv/www/crute.org/mike/htdocs |
2 | 2 | ||
3 | site: | 3 | site: build-site sync |
4 | css: build-css sync | ||
5 | |||
6 | build-site: | ||
4 | ventriloquy/metabuild.py | 7 | ventriloquy/metabuild.py |
8 | |||
9 | sync: | ||
5 | rsync -auvz rendered/ $(WEB_ROOT) | 10 | rsync -auvz rendered/ $(WEB_ROOT) |
6 | chgrp -R www-data $(WEB_ROOT) | 11 | chgrp -R www-data $(WEB_ROOT) |
7 | chmod -R g+r $(WEB_ROOT) | 12 | chmod -R g+r $(WEB_ROOT) |
8 | find $(WEB_ROOT) -type d -exec chmod g+x {} \; | 13 | find $(WEB_ROOT) -type d -exec chmod g+x {} \; |
9 | 14 | ||
10 | css: | 15 | build-css: |
11 | python page_source/downloads/cmpcss page_source/resources/site.css > page_source/resources/site-min.css | 16 | python downloads/cmpcss resources/site.css > resources/site-min.css |
17 | cp resources/site-min.css rendered/resources/site-min.css | ||