diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 19 insertions, 17 deletions
@@ -1,5 +1,5 @@ # all (default) -# Same as $ make dirs js skins www robots +# Same as `make dirs js skins robots` # # dirs # Creates the required directories not present in git @@ -37,42 +37,38 @@ # environments. Patches to improve the portability are always welcome. -.PHONY: all dirs js skins robots chmod chmod-tladmin multi-start multi-stop multi-restart sql-import update-2.10 update-2.11 update-2.12 update-2.13 +.PHONY: all dirs js skins robots chmod chmod-tladmin multi-stop multi-start multi-restart\ + sql-import update-2.10 update-2.11 update-2.12 update-2.13 update-2.14 all: dirs js skins robots data/config.pl +dirs: static/f/js static/cv static/sf static/st data/log www www/feeds -dirs: static/cv static/sf static/st data/log www +js: static/f/js/en.js + +skins: static/s/*/style.css + +robots: dirs www/robots.txt static/robots.txt static/cv static/sf static/st: mkdir $@; for i in $$(seq -w 0 1 99); do mkdir "$@/$$i"; done -data/log www: +static/f/js data/log www www/feeds: mkdir $@ - -js: static/f/script.js - -static/f/script.js: data/script.js data/lang.txt util/jsgen.pl data/config.pl +static/f/js/en.js: data/script.js data/lang.txt util/jsgen.pl data/config.pl data/global.pl util/jsgen.pl - -skins: static/s/*/style.css - static/s/%/style.css: static/s/%/conf util/skingen.pl data/style.css util/skingen.pl $* - -robots: dirs www/robots.txt static/robots.txt - %/robots.txt: echo 'User-agent: *' > $@ echo 'Disallow: /' >> $@ - chmod: all - chmod a-x+rw static/f/script.js + chmod a+xrw static/f/js chmod -R a-x+rwX static/{cv,sf,st} chmod a-x+rw static/s/*/{style.css,boxbg.png} @@ -127,7 +123,7 @@ define runpsql endef -sql-import: +sql-import): ${runpsql} < util/sql/all.sql @@ -152,3 +148,9 @@ update-2.13: all ${runpsql} < util/updates/update_2.13.sql $(multi-start) +update-2.14: all + rm -f static/f/script.js + $(multi-stop) + ${runpsql} < util/updates/update_2.14.sql + $(multi-start) + |