X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=db617946f40817f02975b41071890b138f37ac29;hb=e613b04c5ad24b2369581f8f94a84fb435d7d4cd;hp=b31f1d474eb17d7dbb09836db56f938229be2e7a;hpb=9d67a080b3904d93ff19df0f1d8df2d522373e8a;p=platal.git diff --git a/Makefile b/Makefile index b31f1d4..db61794 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ ################################################################################ # definitions -VERSION := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/\t.*//") +VERSION := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/\t.*//;s/ .*//") PKG_NAME = platal PKG_DIST = $(PKG_NAME)-$(VERSION) @@ -22,7 +22,7 @@ headers: headache -c install.d/platal-dev/templates/header.conf -h install.d/platal-dev/templates/header \ `find templates -name '*.tpl' ! -path 'templates/xnet/skin.tpl' ! -path 'templates/skin/*.tpl' ! -name 'vcard.tpl' ` -build: spool/templates_c wiki +build: spool/templates_c wiki include/platal/globals.inc.php clean: rm -rf include/platal/globals.inc.php @@ -42,9 +42,12 @@ spool/wiki.d: chmod o+w $@ cd $@ && ln -sf ../../install.d/wiki/wiki.d/* . +wiki/cookbook/e-protect.php: + cd wiki/cookbook && ln -sf ../../install.d/wiki/e-protect.php htdocs/valid.html: touch spool/templates_c/valid.html + chmod o+w spool/templates_c/valid.html cd htdocs && ln -sf ../spool/templates_c/valid.html htdocs/uploads: @@ -62,15 +65,14 @@ wiki/pub/skins/empty: 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; \ + tar -xzvf pmwiki-latest.tgz; \ + rm pmwiki-latest.tgz; \ + mv pmwiki-* wiki; \ fi build-wiki: wiki/local/farmconfig.php wiki/pub/skins/empty spool/wiki.d -wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki +wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki wiki/cookbook/e-protect.php ################################################################################