uses perms field from auth groupex
[wikifarm.git] / Makefile
CommitLineData
bd5caa14
DB
1COOKBOOKS = autocreate.php chat.php faq.php farmadmin.php fieldadmin.php geoloc.php skinchange.php xorgauth.php
2SKINS = gemini monobook triad
3LOCALS = farmconfig.php farmmap.txt
4WIKILIBDS = Site.AuthForm Site.PageActions Site.PageFootMenu
5
9928f813 6all: pmwiki i18n-fr skins local cookbook wikilib.d rights
bd5caa14
DB
7
8pmwiki:
9 rm -f pmwiki-latest.tgz
10 wget http://pmwiki.org/pub/pmwiki/pmwiki-latest.tgz
11 tar -xzf pmwiki-latest.tgz
12 rm -f pmwiki-latest.tgz
13 mv pmwiki-[0-9]* pmwiki
14
15i18n-fr: pmwiki/.i18n-fr
16pmwiki/.i18n-fr:
17 rm -f i18n-fr.zip
18 wget http://pmwiki.org/pub/pmwiki/i18n/i18n-fr.zip
19 (cd pmwiki && unzip ../i18n-fr.zip)
20 rm -f i18n-fr.zip
21 touch pmwiki/.i18n-fr
22
23skins: $(addprefix pmwiki/pub/skins/,$(SKINS))
24pmwiki/pub/skins/%/:
25 rm -f $*.zip
26 wget http://www.pmwiki.org/pmwiki/uploads/Cookbook/$*.zip
27 (cd pmwiki/pub/skins/ && unzip ../../../$*.zip)
28 rm -f $*.zip
29
30local: $(addprefix pmwiki/local/,$(LOCALS))
31pmwiki/local/%: install/local/%
32 cp $< $@
33
34cookbook: $(addprefix pmwiki/cookbook/,$(COOKBOOKS))
35pmwiki/cookbook/%: install/cookbook/%
36 cp $< $@
37
38wikilib.d: pmwiki/wikilib.d/.xorg $(addprefix pmwiki/wikilib.d/,$(WIKILIBDS))
39pmwiki/wikilib.d/.xorg:
40 (cd pmwiki/wikilib.d && rm -f $(WIKILIBDS) && touch .xorg)
41pmwiki/wikilib.d/%: install/wikilib.d/%
42 cp $< $@
9928f813
DB
43
44rights:
45 @chmod g+ws install/NomDuWiki/uploads install/NomDuWiki/wiki.d
f8c128c8 46 @chmod g+w install/NomDuWiki/local/webconfig.php