better makefile
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 7 Oct 2005 08:01:53 +0000 (08:01 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 7 Oct 2005 08:01:53 +0000 (08:01 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@78 839d8a87-29fc-0310-9880-83ba4fa771e5

Makefile

index 26b7352..fd63c8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,12 +52,20 @@ wiki/local/pmwiki.config.php:
 wiki/pub/skins/empty:
        cd wiki/pub/skins/ && ln -sf ../../../install.d/wiki/empty
 
-wiki: build-wiki spool/uploads htdocs/uploads htdocs/wikipub
-       @test -d wiki || wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz
+wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wikipub
 
 spool/wiki.d::
        cd $@ && ln -s ../../install.d/wiki/wiki.d/* .
 
+get-wiki:
+       @if ! test -d wiki; then                                          \
+           wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz;      \
+           echo "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯"; \
+           echo "now please untar pmwiki into wiki/ and run make again"; \
+           echo "_____________________________________________________"; \
+           exit 1;                                                       \
+       fi
+
 build-wiki: wiki/local/pmwiki.config.php wiki/pub/skins/empty spool/wiki.d
 
 ################################################################################