rework build system for wiki
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 7 Oct 2005 07:33:15 +0000 (07:33 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 7 Oct 2005 07:33:15 +0000 (07:33 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@75 839d8a87-29fc-0310-9880-83ba4fa771e5

Makefile
install.d/wiki/empty/empty.tmpl [new file with mode: 0644]

index 31418c5..527e6e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,59 +16,46 @@ VCS_FILTER = ! -name .arch-ids ! -name CVS
 
 all: build
 
+devel: build htdocs/valid.html
+
 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' `
 
-build: pkg-build 
-
-dist: clean pkg-dist
-
-bzdist: clean pkg-bzdist
+build: templates_c wiki
 
 clean:
        rm -rf include/platal/globals.inc.php
-       rm -f htdocs/banana/banana.css htdocs/valid.html include/banana htdocs/banana/img
 
 %: %.in Makefile
        sed -e 's,@VERSION@,$(VERSION),g' $< > $@
 
 ################################################################################
-# devel targets
-templates_c:
-       mkdir templates_c
-       chmod o+w templates_c
+# targets
+templates_c uploads:
+       mkdir -p $@
+       chmod o+w $@
 
 htdocs/valid.html:
        touch templates_c/valid.html
-       ln -sf ../templates_c/valid.html htdocs/valid.html
+       cd htdocs && ln -sf ../templates_c/valid.html
+
+htdocs/uploads:
+       cd htdocs && ln -sf ../uploads
 
-devel: build templates_c htdocs/valid.html
+htdocs/wikipub:
+       cd htdocs && ln -sf ../wiki/pub wikipub
 
+wiki/local/pmwiki.config.php:
+       cd wiki/local/     && ln -sf ../../plugins/pmwiki.config.php
+
+wiki/pub/skins/empty:
+       cd wiki/pub/skins/ && ln -sf ../../../install.d/wiki/empty
+
+wiki: uploads htdocs/uploads htdocs/wikipub wiki/local/pmwiki.config.php wiki/pub/skins/empty
+       @test -d wiki || wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz
 
 ################################################################################
-# diogenes package targets
-
-pkg-build: include/platal/globals.inc.php
-
-$(PKG_DIST): pkg-build
-       mkdir $(PKG_DIST)
-       cp -a $(PKG_FILES) $(PKG_DIST)
-       for dir in `find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
-       do \
-          mkdir -p $(PKG_DIST)/$$dir; \
-         find $$dir -type f -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \
-       done
-
-pkg-dist: $(PKG_DIST)
-       rm -f $(PKG_DIST).tar.gz
-       tar czf $(PKG_DIST).tar.gz $(PKG_DIST)
-       rm -rf $(PKG_DIST)
-
-pkg-bzdist: $(PKG_DIST)
-       rm -f $(PKG_DIST).tar.bz2
-       tar cjf $(PKG_DIST).tar.bz2 $(PKG_DIST)
-       rm -rf $(PKG_DIST)
-
-.PHONY: build dist clean pkg-build pkg-dist
+
+.PHONY: build dist clean wiki
 
diff --git a/install.d/wiki/empty/empty.tmpl b/install.d/wiki/empty/empty.tmpl
new file mode 100644 (file)
index 0000000..06c619a
--- /dev/null
@@ -0,0 +1,8 @@
+<!--HeaderText-->
+<!--/HeaderText-->
+<!--PageLeftFmt-->
+<!--wiki:$Group.SideBar $SiteGroup.SideBar-->
+<!--/PageLeftFmt-->
+<!--wiki:$Group.PageActions $SiteGroup.PageActions-->
+<!--PageText-->
+