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

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

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


Revision 1.11 - (hide annotations) (download)
Thu Sep 4 19:52:33 2014 UTC (9 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 adcroft 1.1 # Paths
2    
3 adcroft 1.4 SHELL = /bin/bash
4 edhill 1.5 #eh3 TARGETDIR = /u/httpd/html/devel/sealion
5     TARGETDIR = ../../../scratch/dev_docs
6 adcroft 1.1 BUILDWEBDIR = $(PWD)
7    
8     SKELETON = $(BUILDWEBDIR)/skeleton
9 edhill 1.5 #eh3 LATEXROOT = $(BUILDWEBDIR)/latex
10 edhill 1.6 LATEXROOT = ../../../manual
11 adcroft 1.1 VDBROOT = $(BUILDWEBDIR)/vdb
12     BINDIR = $(BUILDWEBDIR)/bin
13     PFILESDIR = $(BUILDWEBDIR)/program_files
14 jmc 1.10 #jmc: try relative path to speed-up copies
15     SKELETON = ./skeleton
16     VDBROOT = ./vdb
17 adcroft 1.1
18 adcroft 1.4 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 adcroft 1.1
22     Templates:
23     cd templates; make
24    
25     InstallSkeleton:
26 edhill 1.9 mkdir -p $(TARGETDIR)
27     cp -rp $(SKELETON)/* $(TARGETDIR)
28 edhill 1.5 chmod -R u+w $(TARGETDIR)
29 adcroft 1.4
30     InstallLatex:
31 edhill 1.9 mkdir -p $(TARGETDIR)/online_documents
32 adcroft 1.1 cp -rp $(LATEXROOT)/manual/* $(TARGETDIR)/online_documents/
33 adcroft 1.4
34     InstallPDF:
35 edhill 1.9 mkdir -p $(TARGETDIR)/online_documents
36 adcroft 1.4 cp -p $(LATEXROOT)/manual.p* $(TARGETDIR)/online_documents/
37    
38     InstallOLF:
39 edhill 1.9 mkdir -p $(TARGETDIR)/on-line-figs
40 adcroft 1.1 cp -rp $(LATEXROOT)/on-line-figs/* $(TARGETDIR)/on-line-figs/
41 adcroft 1.4
42 jmc 1.11 #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 adcroft 1.4 InstallVDB:
45 edhill 1.9 mkdir -p $(TARGETDIR)/code_reference
46 jmc 1.11 #cp -rp $(VDBROOT) $(TARGETDIR)/code_reference/
47     mv $(VDBROOT) $(TARGETDIR)/code_reference/
48 adcroft 1.1
49     Bonniefy: $(TARGETDIR)
50 edhill 1.5 chmod -R u+w $(TARGETDIR)
51     $(BINDIR)/bonniefy.pl --targetdir=$(TARGETDIR) --homedir=$(BUILDWEBDIR)
52 adcroft 1.3
53     Index: $(TARGETDIR)/home_page/frontpage.html
54     cat $(TARGETDIR)/home_page/frontpage.html \
55     | sed 's:\.\./::' > $(TARGETDIR)/index.html
56 adcroft 1.1
57 adcroft 1.4 SiteMap:
58     echo $(SHELL)
59 edhill 1.9 mkdir -p $(TARGETDIR)/sitemap
60 jmc 1.10 cd $(TARGETDIR)/sitemap; $(BINDIR)/makesitemap ../online_documents > index.html
61 adcroft 1.4
62 adcroft 1.1 Search:
63 edhill 1.5 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf
64 adcroft 1.1 Search2:
65 edhill 1.5 # cd $(TARGETDIR); $(BINDIR)/swish-e -c $(PFILESDIR)/Swish-e.conf \
66     # -S prog -i $(BINDIR)/DirTree.pl
67 adcroft 1.1
68 edhill 1.6 Latex:
69 adcroft 1.4 cd $(LATEXROOT); make html
70    
71     pdf:
72     cd $(LATEXROOT); make ps pdf ps.gz
73 adcroft 1.1
74     VDB:
75 edhill 1.7 cd code-browser; make dev
76 adcroft 1.1
77     Clean:
78     cd templates; make clean
79 edhill 1.5 cd $(LATEXROOT); make Clean
80 adcroft 1.1
81     TestSearch:
82     $(BINDIR)/swish-e -f $(TARGETDIR)/index.swish-e -w adcroft
83    

  ViewVC Help
Powered by ViewVC 1.1.22