1 # $Id: Makefile,v 1.5 2004/11/25 20:18:39 x99laine Exp $
2 ################################################################################
5 VERSION
:= $(shell grep VERSION ChangeLog | head
-1 | sed
-e
"s/VERSION //;s/\t.*//")
8 PKG_DIST
= $(PKG_NAME
)-$(VERSION
)
9 PKG_FILES
= AUTHORS ChangeLog COPYING README Makefile
10 PKG_DIRS
= configs htdocs
include install.d plugins po scripts templates upgrade
12 VCS_FILTER
= ! -name .arch-ids
! -name CVS
14 ################################################################################
19 devel
: build htdocs
/valid.html
22 headache
-c
install.d
/platal-dev
/templates
/header.conf
-h
install.d
/platal-dev
/templates
/header \
23 `find templates -name '*.tpl' ! -path 'templates/xnet/skin.tpl' ! -path 'templates/skin/*.tpl' ! -name 'vcard.tpl' `
25 build
: spool
/templates_c wiki
28 rm -rf
include/platal
/globals.inc.php
31 sed
-e
's,@VERSION@,$(VERSION),g' $< > $@
33 ################################################################################
36 spool
/templates_c spool
/uploads
:
43 cd
$@
&& ln
-sf ..
/..
/install.d
/wiki
/wiki.d
/* .
47 touch spool
/templates_c
/valid.html
48 chmod o
+w spool
/templates_c
/valid.html
49 cd htdocs
&& ln
-sf ..
/spool
/templates_c
/valid.html
52 cd htdocs
&& ln
-sf ..
/spool
/uploads
55 cd htdocs
&& ln
-sf ..
/wiki
/pub wiki
57 wiki
/local
/farmconfig.php
:
58 cd wiki
/local
/ && ln
-sf ..
/..
/plugins
/pmwiki.config.php farmconfig.php
61 cd wiki
/pub
/skins
/ && ln
-sf ..
/..
/..
/install.d
/wiki
/empty
64 @if
! test -d wiki
; then \
65 wget http
://www.pmwiki.org
/pub
/pmwiki
/pmwiki-latest.tgz
; \
66 echo
"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯"; \
67 echo
"now please untar pmwiki into wiki/ and run make again"; \
68 echo
"_____________________________________________________"; \
72 build-wiki
: wiki
/local
/farmconfig.php wiki
/pub
/skins
/empty spool
/wiki.d
74 wiki
: get-wiki build-wiki spool
/uploads htdocs
/uploads htdocs
/wiki
76 ################################################################################
78 .PHONY
: build
dist clean wiki build-wiki