mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-20 16:00:26 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1329 e7d03fd6-7b0d-0410-9947-9c21f3af8025
112 lines
3.3 KiB
Makefile
112 lines
3.3 KiB
Makefile
# This Makefile is only used by developers.
|
|
PYTHON := python2.3
|
|
VERSION = $(shell $(PYTHON) setup.py --version)
|
|
PACKAGE := linkchecker
|
|
NAME = $(shell $(PYTHON) setup.py --name)
|
|
PACKAGEDIR = /home/groups/l/li/$(PACKAGE)
|
|
#HTMLDIR=shell1.sourceforge.net:$(PACKAGEDIR)/htdocs
|
|
HTMLDIR=/home/calvin/public_html/linkchecker.sf.net/htdocs
|
|
#HOST=treasure.calvinsplayground.de
|
|
HOST=www.debian.org
|
|
#LCOPTS=-ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -Fxml -R -t0 -v -s
|
|
LCOPTS=-ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -Fxml -R -t0 -v -s -r1
|
|
TEST := test/run.sh test/regrtest.py
|
|
OFFLINETESTS = test_base test_misc test_file test_frames
|
|
ONLINETESTS = test_mail test_http test_https test_news test_ftp test_telnet
|
|
DESTDIR=/.
|
|
MD5SUMS=linkchecker-md5sums.txt
|
|
|
|
PYCHECKEROPTS := -F pycheckrc
|
|
PYCHECKERFILES := linkcheck/*.py linkcheck/parser/*.py \
|
|
linkcheck/DNS/*.py linkcheck/log/*.py
|
|
|
|
all:
|
|
@echo "Read the file INSTALL to see how to build and install"
|
|
|
|
clean:
|
|
# ignore errors of this command
|
|
-$(PYTHON) setup.py clean --all
|
|
$(MAKE) -C po clean
|
|
rm -f linkcheck/parser/htmlsax.so
|
|
find . -name '*.py[co]' | xargs rm -f
|
|
|
|
distclean: clean cleandeb
|
|
# just to be sure clean also the build dir
|
|
rm -rf dist build
|
|
rm -f VERSION _$(PACKAGE)_configdata.py MANIFEST Packages.gz
|
|
# clean aborted dist builds and -out files
|
|
rm -f $(PACKAGE)-out* $(PACKAGE).prof $(PACKAGE)-md5sums.txt
|
|
|
|
cleandeb:
|
|
rm -rf debian/$(PACKAGE) debian/tmp
|
|
rm -f debian/*.debhelper debian/{files,substvars}
|
|
rm -f configure-stamp build-stamp
|
|
|
|
config:
|
|
$(PYTHON) setup.py config -lcrypto
|
|
|
|
dist: releasecheck distclean locale config
|
|
$(PYTHON) setup.py sdist --formats=gztar bdist_rpm
|
|
|
|
# to build in the current directory (assumes python 2.3)
|
|
localbuild:
|
|
$(MAKE) -C linkcheck/parser
|
|
$(PYTHON) setup.py build
|
|
cp -f build/lib.linux-i686-2.3/linkcheck/parser/htmlsax.so linkcheck/parser
|
|
|
|
|
|
# produce the .deb Debian package
|
|
deb_local: cleandeb
|
|
# standard for local use
|
|
fakeroot debian/rules binary
|
|
|
|
deb_signed: cleandeb
|
|
# ready for upload, signed with my GPG key
|
|
env CVSROOT=:ext:calvin@cvs.linkchecker.sourceforge.net:/cvsroot/linkchecker cvs-buildpackage -Mlinkchecker -W/home/calvin/projects/cvs-build -sgpg -pgpg -k32EC6F3E -r"fakeroot --" -I.cvsignore
|
|
|
|
files: locale localbuild
|
|
env http_proxy="" LANG=C $(PYTHON) $(PACKAGE) $(LCOPTS) -i$(HOST) http://$(HOST)/
|
|
rm -f linkchecker-out.*.gz
|
|
for f in linkchecker-out.*; do gzip --best $$f; done
|
|
|
|
VERSION:
|
|
echo $(VERSION) > VERSION
|
|
|
|
upload:
|
|
rm -f $(MD5SUMS)
|
|
md5sum dist/* > $(MD5SUMS)
|
|
for f in dist/*; do gpg --detach-sign --armor $$f; done
|
|
ncftpput upload.sourceforge.net /incoming dist/*
|
|
|
|
homepage: files VERSION
|
|
cp ChangeLog $(HTMLDIR)/changes.txt
|
|
cp README $(HTMLDIR)/readme.txt
|
|
cp linkchecker-out.*.gz $(HTMLDIR)
|
|
cp VERSION $(HTMLDIR)/raw/
|
|
cp $(MD5SUMS) $(HTMLDIR)/
|
|
|
|
test:
|
|
$(TEST) $(OFFLINETESTS)
|
|
|
|
onlinetest:
|
|
$(TEST) $(ONLINETESTS)
|
|
|
|
locale:
|
|
$(MAKE) -C po
|
|
|
|
timeouttest:
|
|
$(PYTHON) $(PACKAGE) -v --timeout=0 mailto:root@aol.com
|
|
|
|
tar: distclean
|
|
cd .. && tar cjvf linkchecker.tar.bz2 linkchecker
|
|
|
|
releasecheck:
|
|
@if grep xxxx ChangeLog > /dev/null; then \
|
|
echo "Could not release: edit ChangeLog release date"; false; \
|
|
fi
|
|
|
|
pycheck:
|
|
-env PYTHONVER=2.3 pychecker $(PYCHECKEROPTS) $(PYCHECKERFILES)
|
|
|
|
.PHONY: all clean cleandeb distclean files upload test timeouttest locale
|
|
.PHONY: onlinetest config dist deb_local deb_signed deb_unsigned tar
|