ispman/contrib/perl Makefile,NONE,1.1

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/contrib/perl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2478/contrib/perl

Added Files:
	Makefile 
Log Message:
added Makefile for modules installation

--- NEW FILE: Makefile ---
DESTDIR=

include ../../makedefs

MODULES = $(shell grep ^\\w modules | awk '{print $$1}')
MODFILES = $(shell grep ^\\w modules | awk '{print $$2}')

# install bundled CPAN modules
install-bundled:
	@[ -d .build ] || mkdir .build
	@list="$(MODFILES)";\
	PERL5LIB=$(PREFIX)/lib; export PERL5LIB;\
	cd .build;\
	for p in $$list; do \
	   echo "Building $$p"; \
	   tar xzf ../$$p ;\
	   cd `echo $$p | sed -e "s/.*_//" -e "s/\.tgz//" -e "s/\.tar\.gz//"`;\
	   perl Makefile.PL INSTALLDIRS=perl LIB=$(PREFIX)/lib \
			    INSTALLMAN1DIR=$(PREFIX)/man/man1 \
			    INSTALLMAN3DIR=$(PREFIX)/man/man3;\
	   make;\
	   make install;\
	   cd ..;\
	done

# install latest modules from CPAN
install-cpan install-cpan-ispman:
	perl -MCPAN -e '\
		use lib "$(PREFIX)/lib";\
		@list = qw( $(MODULES) );\
		CPAN::Config->defaults;\
		CPAN::Config->edit("makepl_arg", q[INSTALLDIRS=perl LIB=$(PREFIX)/lib INSTALLMAN1DIR=$(PREFIX)/man/man1 INSTALLMAN3DIR=$(PREFIX)/man/man3]); \
		install $$_ for @list; '

# install latest modules from CPAN
install-cpan-site:
	perl -MCPAN -e '\
		@list = qw( $(MODULES) ); \
		CPAN::Config->defaults; \
		CPAN::Config->edit("makepl_arg", q[INSTALLDIRS=site]); \
		install $$_ for @list; '

clean:
	rm -rf .build


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.