Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

110 lines (87 sloc) 2.628 kB
VERSION=20031031
DISTNAME=pastebot-$(VERSION)
DISTBUILD=$(DISTNAME)
DISTTAR=$(DISTNAME).tar
DISTTGZ=$(DISTTAR).gz
DESTDIR =
prefix = $(DESTDIR)/usr
exec_prefix = $(prefix)
man_prefix = $(prefix)/share
sysconfdir = $(DESTDIR)/etc
datadir = $(prefix)/share
INSTALL = /usr/bin/install
INSTALL_BIN = -m 755
INSTALL_DATA = -m 644
PACKAGE = pastebot
BINFILE = $(PACKAGE)
BINSRC = $(PACKAGE).perl
CONFSRC = $(PACKAGE).conf-dist
CONFFILE = $(PACKAGE).conf
LIBSRC = $(PACKAGE).lib.sample
LIBFILE = $(PACKAGE).lib
BINDIR = $(exec_prefix)/bin
MANDIR = $(man_prefix)/man/man1
DATADIR = $(datadir)/$(PACKAGE)
PASTEDIR = $(datadir)/$(PACKAGE)/pastestore
ETCDIR = $(sysconfdir)/$(PACKAGE)
TAR_OPT_EX = --exclude=CVS --exclude=*[~\#]
dist: $(DISTTGZ)
$(DISTTGZ): distdir
if [ -e $(DISTTGZ) ] ; \
then echo $(DISTTGZ) already exists ; \
exit 1 ; \
fi
tar cf $(DISTTAR) $(DISTBUILD)
-perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
gzip $(DISTTAR)
install-cpan:
perl -MCPAN -e '\
@list = qw( \
HTTP::Request \
HTTP::Response \
HTTP::Status \
Perl::Tidy \
POE \
POE::Component::IRC \
Storable \
Text::Template \
Time::HiRes \
URI ); \
install $$_ for @list; \
'
install-etc:
$(INSTALL) $(INSTALL_DATA) -d $(ETCDIR)
if [ ! -d $(ETCDIR) ]; then exit 1; fi
@if [ -f $(ETCDIR)/$(LIBFILE) ]; then \
echo "Not installing, file exists $(ETCDIR)/$(LIBFILE)"; \
else \
$(INSTALL) $(INSTALL_DATA) $(LIBSRC) $(ETCDIR)/$(LIBFILE); \
fi;
@if [ -f $(ETCDIR)/$(CONFFILE) ]; then \
echo "Not installing, file exists $(ETCDIR)/$(CONFFILE)"; \
else \
$(INSTALL) $(INSTALL_DATA) $(CONFSRC) $(ETCDIR)/$(CONFFILE); \
fi;
echo "You may need to edit files in $(ETCDIR)"
install-store:
$(INSTALL) $(INSTALL_DATA) -d $(PASTEDIR)
install-lib: install-store
$(INSTALL) $(INSTALL_DATA) -d $(DATADIR)
if [ ! -d $(DATADIR) ]; then exit 1; fi
tar $(TAR_OPT_EX) -cf - * | (cd $(DATADIR); tar -xf -) && \
install-bin:
$(INSTALL) $(INSTALL_DATA) -d $(BINDIR)
$(INSTALL) $(INSTALL_BIN) $(BINSRC) $(BINDIR)/$(BINFILE)
install: install-lib install-bin install-etc
distdir:
-perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
perl -MExtUtils::Manifest=manicopy,maniread -e "manicopy(maniread(), '$(DISTBUILD)')"
find $(DISTBUILD) -type f | xargs chmod u+w
clean:
-perl -MExtUtils::Command -e rm_rf $(DISTBUILD)
manicheck:
perl -MExtUtils::Manifest=manicheck -e 'manicheck()'
filecheck:
perl -MExtUtils::Manifest=filecheck -e 'filecheck()'
mkmanifest:
perl -MExtUtils::Manifest=mkmanifest -e 'mkmanifest()'
Jump to Line
Something went wrong with that request. Please try again.