/[MITgcm]/mitgcm.org/devel/buildweb/Makefile
ViewVC logotype

Contents of /mitgcm.org/devel/buildweb/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Wed Jul 30 13:42:53 2003 UTC (17 years, 10 months ago) by edhill
Branch: MAIN
Changes since 1.5: +4 -4 lines
Small cleanups so that the following docs-build process now works on
RH 8 & 9 systems (fails on RH 6.x, not tested on 7.x):

  cvs co  manual MITgcm mitgcm.org
  mkdir scratch
  cd mitgcm.org/devel/buildweb  &&  make All
  mv scratch/dev_docs /PATH/TO/WWW/

1 # Paths
2
3 SHELL = /bin/bash
4 #eh3 TARGETDIR = /u/httpd/html/devel/sealion
5 TARGETDIR = ../../../scratch/dev_docs
6 BUILDWEBDIR = $(PWD)
7
8 SKELETON = $(BUILDWEBDIR)/skeleton
9 #eh3 LATEXROOT = $(BUILDWEBDIR)/latex
10 LATEXROOT = ../../../manual
11 VDBROOT = $(BUILDWEBDIR)/vdb
12 BINDIR = $(BUILDWEBDIR)/bin
13 PFILESDIR = $(BUILDWEBDIR)/program_files
14
15 all: Templates InstallSkeleton InstallLatex InstallPDF InstallOLF InstallVDB SiteMap Search2 Bonniefy Index
16 All: pdf Latex VDB all
17 quick: Templates InstallSkeleton InstallLatex InstallPDF SiteMap Search2 Bonniefy Index
18
19 Templates:
20 cd templates; make
21
22 InstallSkeleton:
23 rm -rf $(TARGETDIR)
24 cp -rp $(SKELETON) $(TARGETDIR)
25 chmod -R u+w $(TARGETDIR)
26
27 InstallLatex:
28 cp -rp $(LATEXROOT)/manual/* $(TARGETDIR)/online_documents/
29
30 InstallPDF:
31 cp -p $(LATEXROOT)/manual.p* $(TARGETDIR)/online_documents/
32
33 InstallOLF:
34 cp -rp $(LATEXROOT)/on-line-figs/* $(TARGETDIR)/on-line-figs/
35
36 InstallVDB:
37 cp -rp $(VDBROOT) $(TARGETDIR)/code_reference/
38
39 Bonniefy: $(TARGETDIR)
40 chmod -R u+w $(TARGETDIR)
41 $(BINDIR)/bonniefy.pl --targetdir=$(TARGETDIR) --homedir=$(BUILDWEBDIR)
42
43 Index: $(TARGETDIR)/home_page/frontpage.html
44 cat $(TARGETDIR)/home_page/frontpage.html \
45 | sed 's:\.\./::' > $(TARGETDIR)/index.html
46
47 SiteMap:
48 echo $(SHELL)
49 cd $(TARGETDIR)/sitemap; $(BUILDWEBDIR)/bin/makesitemap ../online_documents > index.html
50
51 Search:
52 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf
53 Search2:
54 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf \
55 # -S prog -i $(BINDIR)/DirTree.pl
56
57 Latex:
58 cd $(LATEXROOT); make html
59
60 pdf:
61 cd $(LATEXROOT); make ps pdf ps.gz
62
63 VDB:
64 cd code-browser; source README
65
66 Clean:
67 cd templates; make clean
68 cd $(LATEXROOT); make Clean
69
70 TestSearch:
71 $(BINDIR)/swish-e -f $(TARGETDIR)/index.swish-e -w adcroft
72
73 #eh3 cvs co -d latex manual -d -P
74 #eh3 latex:
75 #eh3 cd $(LATEXROOT); cvs up

  ViewVC Help
Powered by ViewVC 1.1.22