/[MITgcm]/MITgcm/doc/api_reference/configure
ViewVC logotype

Diff of /MITgcm/doc/api_reference/configure

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

revision 1.5 by edhill, Thu Apr 1 05:00:06 2004 UTC revision 1.9 by dimitri, Wed May 5 22:50:54 2004 UTC
# Line 29  cat <<EOF > Makefile Line 29  cat <<EOF > Makefile
29    
30  all: all_protex  all: all_protex
31    
 clean:  
         -rm -f *_*.tex *.aux *.dvi *.log *.toc *.out  
   
32  EOF  EOF
33    
34  rm -rf ./.targets  rm -rf ./.targets ./.all_clean
35  cat ./.dir_list_nocomments | while read line ; do  cat ./.dir_list_nocomments | while read line ; do
36    
37      echo >> Makefile      echo >> Makefile
38      base_target=`echo $line | awk '{print $1}' | sed -e 's|/|__|g'`      base_target=`echo $line | awk '{print $1}' | sed -e 's|/|__|g'`
39      target=$base_target".tex"      target=$base_target".tex"
40        printf " $target" >> ./.all_clean
41      echo "Finding files for \"$target\" in: $line"      echo "Finding files for \"$target\" in: $line"
42      tex_files=""      tex_files=""
43      h_files=""      h_files=""
# Line 122  api_main.tex: introduction.tex \$(ALLTEX Line 120  api_main.tex: introduction.tex \$(ALLTEX
120    
121  api_main.dvi:  api_main.tex  api_main.dvi:  api_main.tex
122          latex api_main          latex api_main
123            bibtex api_main
124          latex api_main          latex api_main
125          latex api_main          latex api_main
         latex api_main  
126    
127  all_protex: api_main.dvi  api_main.ps: api_main.dvi
128            dvips -Pcmz -Pamz -o api_main.ps api_main.dvi
129    
130    PDFOPTS = -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true
131    api_main.pdf: api_main.ps
132            ps2pdf \$(PDFOPTS) api_main.ps api_main.pdf
133    
134    all_protex: api_main.pdf
135    
136    distclean:
137            @make clean
138            -rm -f Makefile
139    
140    install: all
141            -rm -rf ./api_ref
142            mkdir ./api_ref
143            -cp api_main.pdf ./api_ref/api_ref.pdf
144            scp -r ./api_ref mitgcm.org:/u/u0/httpd/html/
145    
146    clean:
147            -rm -f *.aux *.dvi *.log *.toc *.out
148            -rm -f api_main.*
149  EOF  EOF
150    
151    printf "\t-rm -f " >> Makefile
152    cat ./.all_clean >> Makefile
153    
154  rm -f ./.dir_list_nocomments  rm -f ./.dir_list_nocomments
155  rm -f ./.targets  rm -f ./.targets
156    rm -f ./.all_clean

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22