X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=df390c42c62b6254893cd36ea1c77665cc5be580;hb=a093f36bb249a7fb0c498bbae32ba0dc3151aff9;hp=1570e142e403a9e12c77aefd6f079b74522cbcf3;hpb=91f37c81c3af78615c566acc7490120ed06f7bbd;p=platal.git diff --git a/Makefile b/Makefile index 1570e14..df390c4 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 banana clean: rm -rf include/platal/globals.inc.php @@ -42,16 +42,19 @@ 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: cd htdocs && ln -sf ../spool/uploads -htdocs/wikipub: - cd htdocs && ln -sf ../wiki/pub wikipub +htdocs/wiki: + cd htdocs && ln -sf ../wiki/pub wiki wiki/local/farmconfig.php: cd wiki/local/ && ln -sf ../../plugins/pmwiki.config.php farmconfig.php @@ -62,17 +65,23 @@ 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 +banana: htdocs/img htdocs/css/banana.css +htdocs/img: + cd $(@D) && ln -sf /usr/share/banana/img + +htdocs/css/banana.css: + cd $(@D) && ln -sf /usr/share/banana/css/style.css $(@F) + build-wiki: wiki/local/farmconfig.php wiki/pub/skins/empty spool/wiki.d -wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wikipub +wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki wiki/cookbook/e-protect.php ################################################################################ -.PHONY: build dist clean wiki build-wiki +.PHONY: build dist clean wiki build-wiki banana