-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
-
-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; \
- echo "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯"; \
- echo "now please untar pmwiki into wiki/ and run make again"; \
- echo "_____________________________________________________"; \
- exit 1; \
- fi
-
-build-wiki: wiki/local/pmwiki.config.php wiki/pub/skins/empty spool/wiki.d
-
-################################################################################
+%: %.in Makefile ChangeLog
+ sed -e 's,@VERSION@,$(VERSION),g' $< > $@