X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=3233b9fd24d1c250b93b83a1b86f21c50a87e2b3;hb=e97df22eacc433a9982aad507f980b303d5fa2c1;hp=232aa1f80d95519738d8ab420965ce9fb8edc03d;hpb=b27ccd85af8db2d996495ba1e8a63b504b2a9b4a;p=platal.git diff --git a/Makefile b/Makefile index 232aa1f..3233b9f 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ endef all: build -build: core conf banana wiki openid medals jquery +build: core conf static banana wiki openid medals jquery q: @echo -e "Code statistics\n" @@ -62,6 +62,14 @@ htdocs/.htaccess: htdocs/.htaccess.in Makefile sed -e "s,@REWRITE_BASE@,$$REWRITE_BASE,g" $< > $@ ## +## static content +## +static: htdocs/javascript@VERSION + +%@VERSION: % Makefile ChangeLog + cd $< && rm -f $(VERSION) && ln -sf . $(VERSION) + +## ## wiki ## @@ -115,20 +123,20 @@ get-wiki: openid: get-openid spool/openid/store # There is no obvious way to automatically use the latest version +OPENID_VERSION = 2.1.3 get-openid: @if ! test -d include/Auth; then \ - wget http://openidenabled.com/files/php-openid/packages/php-openid-2.1.2.tar.bz2; \ - tar -xjf php-openid-2.1.2.tar.bz2; \ - mv php-openid-2.1.2/Auth include/; \ - rm php-openid-2.1.2.tar.bz2; \ - rm -r php-openid-2.1.2; \ + wget http://openidenabled.com/files/php-openid/packages/php-openid-$(OPENID_VERSION).tar.bz2; \ + tar -xjf php-openid-$(OPENID_VERSION).tar.bz2; \ + mv php-openid-$(OPENID_VERSION)/Auth include/; \ + rm php-openid-$(OPENID_VERSION).tar.bz2; \ + rm -r php-openid-$(OPENID_VERSION); \ fi spool/openid/store: mkdir -p $@ chmod o+w $@ - ## ## banana ##