projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
encoding et petite modif
[platal.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2a23b2a
..
6227ed5
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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' `
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
clean:
rm -rf include/platal/globals.inc.php
@@
-32,19
+32,29
@@
clean:
################################################################################
# targets
################################################################################
# targets
-spool/templates_c spool/uploads spool/wiki.d::
+
+spool/templates_c spool/uploads:
mkdir -p $@
chmod o+w $@
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
+
htdocs/valid.html:
touch spool/templates_c/valid.html
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
cd htdocs && ln -sf ../spool/templates_c/valid.html
htdocs/uploads:
cd htdocs && ln -sf ../spool/uploads
-htdocs/wiki
pub
:
- cd htdocs && ln -sf ../wiki/pub wiki
pub
+htdocs/wiki:
+ cd htdocs && ln -sf ../wiki/pub wiki
wiki/local/farmconfig.php:
cd wiki/local/ && ln -sf ../../plugins/pmwiki.config.php farmconfig.php
wiki/local/farmconfig.php:
cd wiki/local/ && ln -sf ../../plugins/pmwiki.config.php farmconfig.php
@@
-52,22
+62,18
@@
wiki/local/farmconfig.php:
wiki/pub/skins/empty:
cd wiki/pub/skins/ && ln -sf ../../../install.d/wiki/empty
wiki/pub/skins/empty:
cd wiki/pub/skins/ && ln -sf ../../../install.d/wiki/empty
-wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wikipub
-
-spool/wiki.d::
- cd $@ && ln -sf ../../install.d/wiki/wiki.d/* .
-
get-wiki:
@if ! test -d wiki; then \
wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz; \
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
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/cookbook/e-protect.php
+
################################################################################
.PHONY: build dist clean wiki build-wiki
################################################################################
.PHONY: build dist clean wiki build-wiki