2000-09-10 14:53:52 +00:00
|
|
|
# This Makefile is only used by developers.
|
2003-08-11 11:19:38 +00:00
|
|
|
PYTHON=python2.3
|
2001-11-16 11:03:56 +00:00
|
|
|
VERSION=$(shell $(PYTHON) setup.py --version)
|
2001-03-04 19:42:35 +00:00
|
|
|
PACKAGE=linkchecker
|
2001-11-16 11:03:56 +00:00
|
|
|
NAME=$(shell $(PYTHON) setup.py --name)
|
2001-04-19 21:22:24 +00:00
|
|
|
PACKAGEDIR=/home/groups/l/li/$(PACKAGE)
|
2003-03-16 19:03:32 +00:00
|
|
|
#HTMLDIR=shell1.sourceforge.net:$(PACKAGEDIR)/htdocs
|
|
|
|
|
HTMLDIR=/home/calvin/public_html/linkchecker.sf.net/htdocs
|
2001-09-18 19:16:20 +00:00
|
|
|
#HOST=treasure.calvinsplayground.de
|
2003-10-16 13:39:00 +00:00
|
|
|
HOST=www.debian.org
|
2000-12-22 16:25:32 +00:00
|
|
|
#LCOPTS=-ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -Fxml -R -t0 -v -s
|
2002-02-14 17:46:29 +00:00
|
|
|
LCOPTS=-ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -Fxml -R -t0 -v -s -r1
|
2002-09-26 15:51:23 +00:00
|
|
|
TEST=env LANG=C ftp_proxy="" http_proxy="" $(PYTHON) test/regrtest.py
|
2001-02-22 00:39:40 +00:00
|
|
|
OFFLINETESTS = test_base test_misc test_file test_frames
|
2002-12-28 20:59:34 +00:00
|
|
|
ONLINETESTS = test_mail test_http test_https test_news test_ftp test_telnet
|
2000-03-19 14:24:33 +00:00
|
|
|
DESTDIR=/.
|
2002-09-23 14:52:29 +00:00
|
|
|
MD5SUMS=linkchecker-md5sums.txt
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2000-03-19 14:24:33 +00:00
|
|
|
all:
|
2000-06-13 23:04:44 +00:00
|
|
|
@echo "Read the file INSTALL to see how to build and install"
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
clean:
|
2001-11-16 11:03:56 +00:00
|
|
|
-$(PYTHON) setup.py clean --all # ignore errors of this command
|
2000-11-09 12:02:38 +00:00
|
|
|
$(MAKE) -C po clean
|
2003-01-09 20:42:19 +00:00
|
|
|
rm -f linkcheck/parser/htmlsax.so
|
2000-11-16 11:09:09 +00:00
|
|
|
find . -name '*.py[co]' | xargs rm -f
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
distclean: clean cleandeb
|
2000-12-01 01:33:54 +00:00
|
|
|
rm -rf dist build # just to be sure clean also the build dir
|
2002-05-14 23:28:42 +00:00
|
|
|
rm -f VERSION VERSION-DEVEL _$(PACKAGE)_configdata.py MANIFEST Packages.gz
|
2001-08-23 15:18:05 +00:00
|
|
|
# clean aborted dist builds and -out files
|
|
|
|
|
rm -f $(PACKAGE)-*
|
2000-07-14 14:26:41 +00:00
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
cleandeb:
|
2001-05-24 15:48:07 +00:00
|
|
|
rm -rf debian/$(PACKAGE) debian/tmp
|
2000-11-09 12:02:38 +00:00
|
|
|
rm -f debian/*.debhelper debian/{files,substvars}
|
|
|
|
|
rm -f configure-stamp build-stamp
|
2000-11-02 17:32:14 +00:00
|
|
|
|
2001-04-13 11:39:21 +00:00
|
|
|
config:
|
2001-11-16 11:03:56 +00:00
|
|
|
$(PYTHON) setup.py config -lcrypto
|
2001-04-13 11:39:21 +00:00
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
# no rpm package; too much trouble, cannot test
|
2001-04-13 11:39:21 +00:00
|
|
|
dist: locale config
|
2003-03-16 18:47:51 +00:00
|
|
|
$(PYTHON) setup.py sdist --formats=gztar bdist_rpm
|
2002-09-26 17:00:18 +00:00
|
|
|
rm -f $(MD5SUMS)
|
|
|
|
|
md5sum dist/* > $(MD5SUMS)
|
2002-12-03 21:55:51 +00:00
|
|
|
for f in dist/*; do gpg --detach-sign --armor $$f; done
|
2001-03-04 19:42:35 +00:00
|
|
|
|
2003-08-11 11:19:38 +00:00
|
|
|
# to build in the current directory (assumes python 2.3)
|
2002-11-24 19:53:37 +00:00
|
|
|
localbuild:
|
|
|
|
|
$(MAKE) -C linkcheck/parser
|
|
|
|
|
$(PYTHON) setup.py build
|
2003-08-11 11:19:38 +00:00
|
|
|
cp -f build/lib.linux-i686-2.3/linkcheck/parser/htmlsax.so linkcheck/parser
|
2002-11-24 19:53:37 +00:00
|
|
|
|
|
|
|
|
|
2002-02-08 18:49:46 +00:00
|
|
|
# produce the .deb Debian package
|
|
|
|
|
deb_local: cleandeb
|
|
|
|
|
# standard for local use
|
2001-02-20 09:32:36 +00:00
|
|
|
fakeroot debian/rules binary
|
2002-02-08 18:49:46 +00:00
|
|
|
|
2002-02-24 12:29:35 +00:00
|
|
|
deb_localsigned:
|
2002-11-28 10:04:05 +00:00
|
|
|
debuild -sgpg -pgpg -k32EC6F3E -r"fakeroot --"
|
2002-02-24 12:29:35 +00:00
|
|
|
|
2002-02-08 18:49:46 +00:00
|
|
|
deb_signed: cleandeb
|
|
|
|
|
# ready for upload, signed with my GPG key
|
2003-06-18 11:31:43 +00:00
|
|
|
env CVSROOT=:ext:calvin@cvs.linkchecker.sourceforge.net:/cvsroot/linkchecker cvs-buildpackage -Mlinkchecker -W/home/calvin/projects/cvs-build -sgpg -pgpg -k32EC6F3E -r"fakeroot --"
|
2000-06-10 18:06:43 +00:00
|
|
|
|
2002-02-08 18:49:46 +00:00
|
|
|
deb_unsigned: cleandeb
|
|
|
|
|
# same thing, but unsigned (for local archives)
|
2003-06-18 11:31:43 +00:00
|
|
|
env CVSROOT=:ext:calvin@cvs.linkchecker.sourceforge.net:/cvsroot/linkchecker cvs-buildpackage -Mlinkchecker -W/home/calvin/projects/cvs-build -us -uc -r"fakeroot --"
|
2002-02-08 18:49:46 +00:00
|
|
|
|
2003-01-13 01:05:46 +00:00
|
|
|
files: locale localbuild
|
2002-09-07 16:21:29 +00:00
|
|
|
env http_proxy="" LANG=C $(PYTHON) $(PACKAGE) $(LCOPTS) -i$(HOST) http://$(HOST)/
|
2002-12-06 19:10:03 +00:00
|
|
|
rm -f linkchecker-out.*.gz
|
2002-06-09 15:32:14 +00:00
|
|
|
for f in linkchecker-out.*; do gzip --best $$f; done
|
2000-03-19 14:24:33 +00:00
|
|
|
|
2000-09-10 14:53:52 +00:00
|
|
|
VERSION:
|
2000-06-13 23:04:44 +00:00
|
|
|
echo $(VERSION) > VERSION
|
|
|
|
|
|
2002-05-06 19:38:16 +00:00
|
|
|
VERSION-DEVEL:
|
|
|
|
|
echo $(VERSION) > VERSION-DEVEL
|
|
|
|
|
|
2003-03-16 19:03:32 +00:00
|
|
|
upload: distclean dist files VERSION homepage
|
|
|
|
|
ncftpput upload.sourceforge.net /incoming dist/*
|
|
|
|
|
|
|
|
|
|
homepage:
|
|
|
|
|
cp ChangeLog $(HTMLDIR)/changes.txt
|
|
|
|
|
cp README $(HTMLDIR)/readme.txt
|
|
|
|
|
cp linkchecker-out.*.gz $(HTMLDIR)
|
|
|
|
|
cp VERSION $(HTMLDIR)/raw/
|
|
|
|
|
cp $(MD5SUMS) $(HTMLDIR)/
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2002-05-06 19:38:16 +00:00
|
|
|
upload-devel: distclean dist VERSION-DEVEL
|
2002-09-04 22:48:40 +00:00
|
|
|
scp ChangeLog $(HTMLDIR)/changes-devel.txt
|
2002-05-06 19:38:16 +00:00
|
|
|
scp VERSION-DEVEL $(HTMLDIR)/raw/
|
2002-05-05 21:14:40 +00:00
|
|
|
#scp dist/* $(HTMLDIR)/
|
|
|
|
|
ncftpput upload.sourceforge.net /incoming dist/* && read -p "Make new SF file releases and then press Enter:"
|
|
|
|
|
ssh -C -t shell1.sourceforge.net "cd $(PACKAGEDIR) && make"
|
|
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
test:
|
2002-09-26 15:51:23 +00:00
|
|
|
$(TEST) $(OFFLINETESTS)
|
2001-02-22 00:39:40 +00:00
|
|
|
|
|
|
|
|
onlinetest:
|
2002-09-26 15:51:23 +00:00
|
|
|
$(TEST) $(ONLINETESTS)
|
2000-11-09 12:02:38 +00:00
|
|
|
|
|
|
|
|
locale:
|
|
|
|
|
$(MAKE) -C po
|
2001-08-23 14:06:46 +00:00
|
|
|
|
|
|
|
|
timeouttest:
|
2002-02-08 18:49:46 +00:00
|
|
|
$(PYTHON) $(PACKAGE) -v --timeout=0 mailto:root@aol.com
|
|
|
|
|
|
2002-02-24 12:29:35 +00:00
|
|
|
tar: distclean
|
|
|
|
|
cd .. && tar cjvf linkchecker.tar.bz2 linkchecker
|
|
|
|
|
|
2002-02-08 18:49:46 +00:00
|
|
|
.PHONY: all clean cleandeb distclean files upload test timeouttest locale
|
2002-02-24 12:29:35 +00:00
|
|
|
.PHONY: onlinetest config dist deb_local deb_signed deb_unsigned tar
|
2002-05-14 23:28:42 +00:00
|
|
|
.PHONY: upload-devel
|