3 VERSION
=$(shell expr download
/HTML-Tree-
*.
tar.gz
: 'download/HTML-Tree-\(.*\).tar.gz')
5 HTML_TREE_DIR
=HTML-Tree-
$(VERSION
)
8 all: HTML-Tree-install.tag
clean
10 HTML-Tree-download.tag
:
11 wget
-P download http
://search.cpan.org
/CPAN
/authors
/id
/P
/PE
/PETEK
/HTML-Tree-3.23.
tar.gz
14 HTML-Tree-unpack.tag
: HTML-Tree-download.tag
15 tar xzvf download
/$(HTML_TREE_DIR
).
tar.gz
18 HTML-Tree-configure.tag
: HTML-Tree-unpack.tag
19 cd
$(HTML_TREE_DIR
) && \
20 perl Makefile.PL PREFIX
=$(LOCAL_DIR
)
23 HTML-Tree-make.tag
: HTML-Tree-configure.tag
24 $(MAKE
) -C
$(HTML_TREE_DIR
)
27 HTML-Tree-install.tag
: HTML-Tree-make.tag
28 $(MAKE
) -C
$(HTML_TREE_DIR
) install
32 rm -rf
$(HTML_TREE_DIR
) *.tag
33 @echo
'***************************************************************'
34 @echo
"Add the following line to ~/.bash_profile:"
35 @echo
" export PERL5LIB=~/local-$(HOSTNAME)/lib/perl5/site_perl/"$$(perl
-e
"print(substr($$^V, 1))")
36 @echo
'***************************************************************'