/[MITgcm]/mitgcm.org/devel/buildweb/pkg/swish-e/doc/Makefile.in
ViewVC logotype

Annotation of /mitgcm.org/devel/buildweb/pkg/swish-e/doc/Makefile.in

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


Revision 1.1 - (hide annotations) (download)
Fri Sep 20 19:47:29 2002 UTC (22 years, 10 months ago) by adcroft
Branch point for: Import, MAIN
Initial revision

1 adcroft 1.1
2     # Makefile for swish-e Documentation
3     #
4     # $Id: Makefile.in,v 1.11 2001/10/07 18:11:17 whmoseley Exp $
5     #
6     # Any suggestions to improve this makefile are welcome -- Bill Moseley swish@hank.org
7     #
8     # To Do: get a portable way to use "echo -e"
9    
10     prefix = @prefix@
11     mandir = @mandir@/man1
12     VERSION = @VERSION@
13    
14     SOURCEPODS = ../pod/CHANGES.pod ../pod/README.pod ../pod/SWISH-CONFIG.pod ../pod/SWISH-LIBRARY.pod \
15     ../pod/SWISH-RUN.pod ../pod/INSTALL.pod ../pod/SWISH-3.0.pod ../pod/SWISH-FAQ.pod \
16     ../pod/SWISH-PERL.pod ../pod/SWISH-SEARCH.pod
17    
18    
19     MANPAGES = SWISH-RUN.1 SWISH-CONFIG.1 SWISH-RUN.1 SWISH-FAQ.1 SWISH-LIBRARY.1 SWISH-PERL.1
20    
21    
22     # How portable is .PHONY?
23     .PHONY: all html pod readme pdf man install-man clean realclean
24    
25     .SUFFIXES: # remove default rules
26    
27    
28    
29     all: readme html
30    
31     #--- convert README.pod to README ---
32    
33     ../README: ../pod/README.pod
34     pod2text ../pod/README.pod > ../README && chmod 644 ../README
35    
36     readme: ../README
37    
38    
39     #--- create/install man pages ----------
40    
41     %.1: ../pod/%.pod
42     pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)' $< > $@
43    
44     $(MANPAGES): ../configure
45    
46     man: $(MANPAGES)
47    
48     install-man: man
49     cp $(MANPAGES) $(mandir)
50    
51    
52    
53     #--- create html pages ------
54    
55    
56    
57     ./Version.pm: ../configure
58     echo 'package SWISHE::Doc;$$VERSION=q[$(VERSION)];1' > ./Version.pm
59    
60     html: ./Version.pm
61     @bin/build
62    
63    
64     #--- split version (for searchable version of documentation ) ---
65    
66     split: ./Version.pm
67     @echo "Checking for swish binary..."
68     test -x ../src/swish-e
69    
70     bin/build -s
71    
72     cp ../src/swish-e ../html/split/swish-e
73     ../html/split/swish-e -c split.conf
74     chmod 755 ../html/split/search.cgi
75     perl -i.orig -pe 's{<!-- SEARCH -->}{<center>[<a href="split/search.cgi">Search The Documentation</a>]</center>}' ../html/index.html ../html/index_long.html
76     perl -i.orig -pe 's{<!-- SEARCH -->}{<center>[<a href="search.cgi">Search</a>] [<a href="../index.html">Back to Non-Split Documentation</a>]</center>}' ../html/split/index.html ../html/split/index_long.html
77     @echo -e "\n** Don't forget to refresh in your browser to see the new pages! **\n"
78    
79    
80     #--- create PDF and PostScript ----
81    
82     pdf: ./Version.pm
83     bin/build -d
84     cp -f rel_ps/swish-e_documentation.pdf ..
85     cp -f rel_ps/swish-e_documentation.ps ..
86     rm -rf rel_ps
87     @echo "swish-e_documentation.pdf"
88    
89    
90     #---- clean -------------
91    
92     # This cleans split and pdf/ps and man pages
93     clean:
94     rm -rf rel_ps
95     rm -f ../swish-e_documentation.pdf ../swish-e_documentation.ps
96     rm -rf ../html
97    
98     rm -f ./*.1
99     -chmod 644 ../pod/*.pod
100    
101     realclean: clean
102     rm -f Makefile
103     rm -f ./pod2html-dircache ./pod2html-itemcache
104    
105     distclean: realclean
106    
107    

  ViewVC Help
Powered by ViewVC 1.1.22