Add a Makefile task to download the JanRain openid library into the include folder
authorAymeric Augustin <aymeric.augustin@m4x.org>
Sat, 25 Oct 2008 09:08:33 +0000 (11:08 +0200)
committerAymeric Augustin <aymeric.augustin@m4x.org>
Sat, 25 Oct 2008 21:37:14 +0000 (23:37 +0200)
Ignore that folder in git
Fix mixed space/tabs in Makefile

.gitignore
Makefile

index 77c9a60..b26965f 100644 (file)
@@ -1,3 +1,4 @@
 /wiki
 /spool
+/include/openid
 .*.sw?
index 6b18c74..c2fb537 100644 (file)
--- 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
 
 ##