Merge next branch to trunk.
[sdcc.git] / sdcc-cf / packages / build.cpan / Makefile
blob10dad392395780cf3bc43ce086c42e71bd3cc101
1 include ../packages.mk
3 VERSION=$(shell expr download/HTML-Tree-*.tar.gz : 'download/HTML-Tree-\(.*\).tar.gz')
5 HTML_TREE_DIR=HTML-Tree-$(VERSION)
7 .PHONY: all
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
12 touch $@
14 HTML-Tree-unpack.tag: HTML-Tree-download.tag
15 tar xzvf download/$(HTML_TREE_DIR).tar.gz
16 touch $@
18 HTML-Tree-configure.tag: HTML-Tree-unpack.tag
19 cd $(HTML_TREE_DIR) && \
20 perl Makefile.PL PREFIX=$(LOCAL_DIR)
21 touch $@
23 HTML-Tree-make.tag: HTML-Tree-configure.tag
24 $(MAKE) -C $(HTML_TREE_DIR)
25 touch $@
27 HTML-Tree-install.tag: HTML-Tree-make.tag
28 $(MAKE) -C $(HTML_TREE_DIR) install
29 touch $@
31 clean:
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 '***************************************************************'