0cb48e2001-08-20Martin Nilsson # # Main makefile for extracting autodoc. #
e91ddf2001-08-23Martin Nilsson # $Id: Makefile,v 1.2 2001/08/23 18:58:16 nilsson Exp $
0cb48e2001-08-20Martin Nilsson # PIKE=/export/d1/nilsson/pike/7.3.11/bin/pike PIKEROOT=/home/nilsson/Pike/_7.3/ all: tree-split _html tree-split: join _tree-split _tree-split: rm -rf manual-tree-split || /bin/true @$(PIKE) $(PIKEROOT)autodoc/presentation/tree-split-autodoc.pike \ manual.xml $(PIKEROOT)autodoc/tree-split-template.html manual-tree-split @cp $(PIKEROOT)autodoc/tree-split-style.css manual-tree-split/style.css @test -d manual-tree-split/images || mkdir manual-tree-split/images # cp manual/images/* manual-tree-split/images @cp $(PIKEROOT)autodoc/src_images/next.gif $(PIKEROOT)autodoc/src_images/prev.gif \ manual-tree-split/images _html: html_manual # cp manual/images/* html_manual/images/ @$(PIKE) $(PIKEROOT)autodoc/presentation/make_html.pike --img=images/ \ manual.xml > html_manual/manual.html # @(cd manual && $(MAKE) PIKE="$(PIKE)" html)
e91ddf2001-08-23Martin Nilsson extract: build/etc/Makefile build/base/Makefile @(cd build/etc && $(MAKE) PIKE="$(PIKE)" extract) @(cd build/base && $(MAKE) PIKE="$(PIKE)" extract)
0cb48e2001-08-20Martin Nilsson  join: recursive_join
e91ddf2001-08-23Martin Nilsson  @$(MAKE) PIKE="$(PIKE)" XMLFILES="`echo build/*/*.xml`" manual.xml
0cb48e2001-08-20Martin Nilsson  recursive_join: extract
e91ddf2001-08-23Martin Nilsson  @(cd build/etc && $(MAKE) PIKE="$(PIKE)" join) @(cd build/base && $(MAKE) PIKE="$(PIKE)" join)
0cb48e2001-08-20Martin Nilsson  manual.xml: $(XMLFILES) $(PIKEROOT)bin/join-autodoc.pike @$(PIKE) $(PIKEROOT)bin/join-autodoc.pike --post-process manual.xml $(XMLFILES)
e91ddf2001-08-23Martin Nilsson build/etc/Makefile: Makefile.in build/etc @sed -e "s#@SRCDIR@#../../modules#" \
0cb48e2001-08-20Martin Nilsson  -e "s#@PIKEROOT@#$(PIKEROOT)#" \
e91ddf2001-08-23Martin Nilsson  -e "s#@ROOT@#../../#" \ -e "s#@BUILDROOT@#../#" \ -e "s#@EXTARGS@##" \ <Makefile.in >build/etc/Makefile build/base/Makefile: Makefile.in build/base @sed -e "s#@SRCDIR@#../../../base_server#" \ -e "s#@PIKEROOT@#$(PIKEROOT)#" \ -e "s#@ROOT@#../../#" \ -e "s#@BUILDROOT@#../#" \ -e "s#@EXTARGS@#--rootless#" \ <Makefile.in >build/base/Makefile build/etc: build @test -d build/etc || mkdir build/etc build/base: build @test -d build/base || mkdir build/base
0cb48e2001-08-20Martin Nilsson  build: @test -d build || mkdir build html_manual: @test -d html_manual || mkdir html_manual # @test -d html_manual/images || mkdir html_manual/images clean: @rm -rf build || /bin/true