Commit | Line | Data |
---|---|---|
bd5caa14 DB |
1 | COOKBOOKS = autocreate.php chat.php faq.php farmadmin.php fieldadmin.php geoloc.php skinchange.php xorgauth.php |
2 | SKINS = gemini monobook triad | |
3 | LOCALS = farmconfig.php farmmap.txt | |
4 | WIKILIBDS = Site.AuthForm Site.PageActions Site.PageFootMenu | |
5 | ||
9928f813 | 6 | all: pmwiki i18n-fr skins local cookbook wikilib.d rights |
bd5caa14 DB |
7 | |
8 | pmwiki: | |
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 | ||
15 | i18n-fr: pmwiki/.i18n-fr | |
16 | pmwiki/.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 | ||
23 | skins: $(addprefix pmwiki/pub/skins/,$(SKINS)) | |
24 | pmwiki/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 | ||
30 | local: $(addprefix pmwiki/local/,$(LOCALS)) | |
31 | pmwiki/local/%: install/local/% | |
32 | cp $< $@ | |
33 | ||
34 | cookbook: $(addprefix pmwiki/cookbook/,$(COOKBOOKS)) | |
35 | pmwiki/cookbook/%: install/cookbook/% | |
36 | cp $< $@ | |
37 | ||
38 | wikilib.d: pmwiki/wikilib.d/.xorg $(addprefix pmwiki/wikilib.d/,$(WIKILIBDS)) | |
39 | pmwiki/wikilib.d/.xorg: | |
40 | (cd pmwiki/wikilib.d && rm -f $(WIKILIBDS) && touch .xorg) | |
41 | pmwiki/wikilib.d/%: install/wikilib.d/% | |
42 | cp $< $@ | |
9928f813 DB |
43 | |
44 | rights: | |
45 | @chmod g+ws install/NomDuWiki/uploads install/NomDuWiki/wiki.d | |
f8c128c8 | 46 | @chmod g+w install/NomDuWiki/local/webconfig.php |