all: build
-build: core conf banana wiki medals jquery
+build: core conf banana wiki openid medals jquery
q:
@echo -e "Code statistics\n"
get-wiki:
@if ! test -d wiki; then \
wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz; \
- tar -xzvf pmwiki-latest.tgz; \
- rm pmwiki-latest.tgz; \
- mv pmwiki-* wiki; \
+ tar -xzvf pmwiki-latest.tgz; \
+ rm pmwiki-latest.tgz; \
+ mv pmwiki-* wiki; \
+ fi
+
+##
+## openid
+##
+
+openid: get-openid
+
+# There is no obvious way to automatically use the latest version
+get-openid:
+ @if ! test -d include/openid; 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/openid; \
+ rm php-openid-2.1.2.tar.bz2; \
+ rm -r php-openid-2.1.2; \
fi
##