1 #------------------------------------------------------------
\r
2 # Makefile for MIME::
\r
3 #------------------------------------------------------------
\r
5 # Where to install the libraries:
\r
6 SITE_PERL = /usr/lib/perl5
\r
8 # What Perl5 is called on your system (no need to give entire path):
\r
11 # You probably won't need to change these...
\r
12 MODS = Decoder.pm Entity.pm Head.pm Parser.pm Base64.pm QuotedPrint.pm
\r
15 #------------------------------------------------------------
\r
17 #------------------------------------------------------------
\r
20 @echo "Valid targets: test clean install"
\r
26 # @echo "TESTING Head.pm..."
\r
27 # ${PERL5} MIME/Head.pm < testin/first.hdr > testout/Head.out
\r
28 # @echo "TESTING Decoder.pm..."
\r
29 # ${PERL5} MIME/Decoder.pm < testin/quot-print.body > testout/Decoder.out
\r
30 # @echo "TESTING Parser.pm (simple)..."
\r
31 # ${PERL5} MIME/Parser.pm < testin/simple.msg > testout/Parser.s.out
\r
32 # @echo "TESTING Parser.pm (multipart)..."
\r
33 # ${PERL5} MIME/Parser.pm < testin/multi-2gifs.msg > testout/Parser.m.out
\r
34 @echo "TESTING Parser.pm (multi_nested.msg)..."
\r
35 ${PERL5} MIME/Parser.pm < testin/multi-nested.msg > testout/Parser.n.out
\r
36 @echo "All tests passed... see ./testout/MODULE*.out for output"
\r
39 @if [ ! -d ${SITE_PERL} ]; then \
\r
40 echo "Please edit the SITE_PERL in your Makefile"; exit -1; \
\r
42 @if [ ! -w ${SITE_PERL} ]; then \
\r
43 echo "No permission... should you be root?"; exit -1; \
\r
45 @if [ ! -d ${SITE_PERL}/MIME ]; then \
\r
46 mkdir ${SITE_PERL}/MIME; \
\r
48 install -m 0644 MIME/*.pm ${SITE_PERL}/MIME
\r
51 #------------------------------------------------------------
\r
52 # For developer only...
\r
53 #------------------------------------------------------------
\r
55 POD2HTML_FLAGS = --podpath=. --flush --htmlroot=..
\r
56 HTMLS = ${MODS:.pm=.html}
\r
59 .SUFFIXES: .pm .pod .html
\r
61 # v.1.8 generated 30 Apr 96
\r
62 # v.1.9 is only because 1.8 failed CPAN ingestion
\r
65 mkdist -tgz MIME-parser-$$VERSION ; \
\r
66 cp MKDIST/MIME-parser-$$VERSION.tgz ${HOME}/public_html/cpan
\r
68 documented: ${HTMLS} ${MODS}
\r
71 pod2html ${POD2HTML_FLAGS} \
\r
74 --outfile=docs/$*.html
\r
76 #------------------------------------------------------------
\r