From bba430bf17c565c97a06d75d31fedf1925bc5a8d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 25 Oct 2008 11:08:33 +0200 Subject: [PATCH] Add a Makefile task to download the JanRain openid library into the include folder Ignore that folder in git Fix mixed space/tabs in Makefile --- .gitignore | 1 + Makefile | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 77c9a60..b26965f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /wiki /spool +/include/openid .*.sw? diff --git a/Makefile b/Makefile index 6b18c74..c2fb537 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ endef all: build -build: core conf banana wiki medals jquery +build: core conf banana wiki openid medals jquery q: @echo -e "Code statistics\n" @@ -103,9 +103,25 @@ wiki/pub/skins/empty: 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 ## -- 2.1.4