1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
# 
# Main makefile for extracting autodoc. 
# 
# $Id: Makefile,v 1.3 2001/11/16 16:06:14 nilsson Exp $ 
# 
 
PIKE=pike 
REFDOC=/home/nilsson/Pike/7.3/refdoc 
 
# FIXME: The REFDC variable should be generated. 
 
all: modref 
 
modref: build/modref.xml 
        rm -rf modref || /bin/true 
        @mkdir modref 
        @cp $(REFDOC)/tree-split-style.css modref/style.css 
        @$(PIKE) $(REFDOC)/presentation/tree-split-autodoc.pike \ 
          build/modref.xml $(REFDOC)/tree-split-template.html modref 
        @mkdir modref/images 
#       cp build/images/* modref/images 
        @cp $(REFDOC)/src_images/next.gif $(REFDOC)/src_images/prev.gif modref/images 
 
html: html_manual 
#       cp build/images/* html_manual/images/ 
        @$(PIKE) $(REFDOC)/presentation/make_html.pike --img=images/ build/manual.xml 
 
traditional: traditional_manual build/traditional.xml 
#       cp build/images/* traditional_manual/images/ 
        @$(PIKE) @(REFDOC)/presentation/make_html.pike --img=images/ build/traditional.xml 
 
build/autodoc.xml: recursive_join 
        @$(MAKE) PIKE="$(PIKE)" XMLFILES="`echo build/*/*.xml`" \ 
          autodoc.xml 
 
recursive_join: extract 
        @(cd build/etc && $(MAKE) PIKE="$(PIKE)" join) 
        @(cd build/base && $(MAKE) PIKE="$(PIKE)" join) 
 
extract: build/etc/Makefile build/base/Makefile 
        @(cd build/etc && $(MAKE) PIKE="$(PIKE)" extract) 
        @(cd build/base && $(MAKE) PIKE="$(PIKE)" extract) 
 
manual.xml: build/autodoc.xml $(REFDOC)/structure/onepage.xml $(REFDOC)/bin/assembler.pike 
        @$(PIKE) $(REFDOC)/bin/assembler.pike $(REFDOC)/structure/onepage.xml build/autodoc.xml > manual.xml 
 
build/traditional.xml: build/autodoc.xml $(REFDOC)/structure/traditional.xml $(REFDOC)/bin/assembler.pike 
        @$(PIKE) $(REFDOC)/bin/assembler.pike $(REFDOC)/structure/traditional.xml build/autodoc.xml > build/traditional.xml 
 
build/modref.xml: build/autodoc.xml modref.xml $(REFDOC)/bin/assembler.pike 
        @$(PIKE) $(REFDOC)/bin/assembler.pike modref.xml build/autodoc.xml > build/modref.xml 
 
autodoc.xml: $(XMLFILES) $(REFDOC)/bin/join.pike 
        @$(PIKE) $(REFDOC)/bin/join.pike --post-process build/autodoc.xml $(XMLFILES) 
 
# Makefiles 
 
build/etc/Makefile: Makefile.in build/etc 
        @sed -e "s#@SRCDIR@#../../modules#" \ 
             -e "s#@REFDOC@#$(REFDOC)#" \ 
             -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#@REFDOC@#$(REFDOC)#" \ 
             -e "s#@ROOT@#../../#" \ 
             -e "s#@BUILDROOT@#../#" \ 
             -e "s#@EXTARGS@#--rootless#" \ 
          <Makefile.in >build/base/Makefile 
 
# Directories 
 
build/etc: build 
        @test -d build/etc || mkdir build/etc 
 
build/base: build 
        @test -d build/base || mkdir build/base 
 
build: 
        @test -d build || mkdir build 
 
html_manual: 
        @test -d html_manual || mkdir html_manual 
#       @test -d html_manual/images || mkdir html_manual/images 
 
traditional_manual: 
        @test -d traditional_manual || mkdir traditional_manual 
 
clean: 
        @rm -rf build || /bin/true 
(No newline at end of file)