/[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.11 - (show annotations) (download)
Thu Sep 4 19:52:33 2014 UTC (6 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +4 -1 lines
change the "cp -rp ./vdb" to just a "mv ./vdb" to speed up the built

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 #jmc: try relative path to speed-up copies
15 SKELETON = ./skeleton
16 VDBROOT = ./vdb
17
18 all: Templates InstallSkeleton InstallLatex InstallPDF InstallOLF InstallVDB SiteMap Search2 Bonniefy Index
19 All: pdf Latex VDB all
20 quick: Templates InstallSkeleton InstallLatex InstallPDF SiteMap Search2 Bonniefy Index
21
22 Templates:
23 cd templates; make
24
25 InstallSkeleton:
26 mkdir -p $(TARGETDIR)
27 cp -rp $(SKELETON)/* $(TARGETDIR)
28 chmod -R u+w $(TARGETDIR)
29
30 InstallLatex:
31 mkdir -p $(TARGETDIR)/online_documents
32 cp -rp $(LATEXROOT)/manual/* $(TARGETDIR)/online_documents/
33
34 InstallPDF:
35 mkdir -p $(TARGETDIR)/online_documents
36 cp -p $(LATEXROOT)/manual.p* $(TARGETDIR)/online_documents/
37
38 InstallOLF:
39 mkdir -p $(TARGETDIR)/on-line-figs
40 cp -rp $(LATEXROOT)/on-line-figs/* $(TARGETDIR)/on-line-figs/
41
42 #jmc: to speed up, use a "mv" of dir VDBROOT instead of a copy:
43 # but this prevents to do multiple "make quick" after a "make VDB"
44 InstallVDB:
45 mkdir -p $(TARGETDIR)/code_reference
46 #cp -rp $(VDBROOT) $(TARGETDIR)/code_reference/
47 mv $(VDBROOT) $(TARGETDIR)/code_reference/
48
49 Bonniefy: $(TARGETDIR)
50 chmod -R u+w $(TARGETDIR)
51 $(BINDIR)/bonniefy.pl --targetdir=$(TARGETDIR) --homedir=$(BUILDWEBDIR)
52
53 Index: $(TARGETDIR)/home_page/frontpage.html
54 cat $(TARGETDIR)/home_page/frontpage.html \
55 | sed 's:\.\./::' > $(TARGETDIR)/index.html
56
57 SiteMap:
58 echo $(SHELL)
59 mkdir -p $(TARGETDIR)/sitemap
60 cd $(TARGETDIR)/sitemap; $(BINDIR)/makesitemap ../online_documents > index.html
61
62 Search:
63 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf
64 Search2:
65 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf \
66 # -S prog -i $(BINDIR)/DirTree.pl
67
68 Latex:
69 cd $(LATEXROOT); make html
70
71 pdf:
72 cd $(LATEXROOT); make ps pdf ps.gz
73
74 VDB:
75 cd code-browser; make dev
76
77 Clean:
78 cd templates; make clean
79 cd $(LATEXROOT); make Clean
80
81 TestSearch:
82 $(BINDIR)/swish-e -f $(TARGETDIR)/index.swish-e -w adcroft
83

  ViewVC Help
Powered by ViewVC 1.1.22