X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=dfdbb8989c80490b335b727bb37c41bcd85817f9;hb=68a269916d88ab4f635de4c96367af1ad82ff135;hp=9eba02298cb6ec8b208105c0d2dfd69436a83023;hpb=37f260ad0e9c68da3193ea6b425ac8e94779941e;p=platal.git diff --git a/Makefile b/Makefile index 9eba022..dfdbb89 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) @@ -16,16 +16,7 @@ VCS_FILTER = ! -name .arch-ids ! -name CVS all: build -devel: build htdocs/valid.html - -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 - -clean: - rm -rf include/platal/globals.inc.php +build: core banana wiki %: %.in Makefile sed -e 's,@VERSION@,$(VERSION),g' $< > $@ @@ -33,35 +24,56 @@ clean: ################################################################################ # targets +## +## core +## + +core: spool/templates_c include/platal/globals.inc.php + spool/templates_c spool/uploads: mkdir -p $@ chmod o+w $@ -spool/wiki.d: - mkdir -p $@ - 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 +## +## wiki +## + +WIKI_NEEDS = \ + wiki/local/farmconfig.php \ + wiki/pub/skins/empty \ + wiki/cookbook/e-protect.php \ + spool/wiki.d \ + htdocs/uploads \ + htdocs/wiki \ + +wiki: get-wiki build-wiki -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 +build-wiki: $(WIKI_NEEDS) | get-wiki -htdocs/uploads: +htdocs/uploads: spool/uploads cd htdocs && ln -sf ../spool/uploads htdocs/wiki: cd htdocs && ln -sf ../wiki/pub wiki + +spool/wiki.d: + mkdir -p $@ + 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 + wiki/local/farmconfig.php: cd wiki/local/ && ln -sf ../../plugins/pmwiki.config.php farmconfig.php wiki/pub/skins/empty: cd wiki/pub/skins/ && ln -sf ../../../install.d/wiki/empty + get-wiki: @if ! test -d wiki; then \ wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz; \ @@ -70,11 +82,18 @@ get-wiki: mv pmwiki-* wiki; \ fi -build-wiki: wiki/local/farmconfig.php wiki/pub/skins/empty spool/wiki.d +## +## banana +## + +banana: htdocs/images/banana htdocs/css/banana.css +htdocs/images/banana: + cd $(@D) && ln -sf /usr/share/banana/img $(@F) -wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki wiki/cookbook/e-protect.php +htdocs/css/banana.css: + cd $(@D) && ln -sf /usr/share/banana/css/style.css $(@F) ################################################################################ -.PHONY: build dist clean wiki build-wiki +.PHONY: build dist clean wiki build-wiki banana