linkchecker/Makefile
2000-05-30 10:13:38 +00:00

65 lines
1.6 KiB
Makefile

VERSION=$(shell ./setup.py --version)
HOST=treasure.calvinsplayground.de
PROXY=
#PROXY=-P$(HOST):5050
#HOST=fsinfo.cs.uni-sb.de
#PROXY=-Pwww-proxy.uni-sb.de:3128
PACKAGE = linkchecker
DEBPACKAGE = $(PACKAGE)_$(VERSION)_i386.deb
ALLPACKAGES = ../$(DEBPACKAGE)
SOURCES = linkcheck/Config.py \
linkcheck/FileUrlData.py \
linkcheck/FtpUrlData.py \
linkcheck/GopherUrlData.py \
linkcheck/HostCheckingUrlData.py \
linkcheck/HttpUrlData.py \
linkcheck/HttpsUrlData.py \
linkcheck/JavascriptUrlData.py \
linkcheck/Logging.py \
linkcheck/MailtoUrlData.py \
linkcheck/NntpUrlData.py \
linkcheck/RobotsTxt.py \
linkcheck/TelnetUrlData.py \
linkcheck/Threader.py \
linkcheck/UrlData.py \
linkcheck/__init__.py.tmpl \
linkchecker
DESTDIR=/.
.PHONY: test clean files homepage dist install all
TAR = tar
ZIP = zip
all:
@echo "run python setup.py --help to see how to install"
clean:
./setup.py clean --all
rm -rf $(ALLPACKAGES) $(PACKAGE)-out.*
dist:
./setup.py sdist
fakeroot debian/rules binary
files:
./$(PACKAGE) -ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -R -t0 -v $(PROXY) -i$(HOST) http://$(HOST)/~calvin/
homepage:
scp debian/changelog shell1.sourceforge.net:/home/groups/linkchecker/htdocs/changes.txt
test:
rm -f test/*.result
@for i in test/*.html; do \
echo "Testing $$i. Results are in $$i.result"; \
./$(PACKAGE) -r1 -o text -t0 -N"news.rz.uni-sb.de" -v -a $$i > $$i.result 2>&1; \
done
po:
xgettext --default-domain=linkcheck \
--join-existing --keyword --keyword=_ \
--output-dir=locale/de/LC_MESSAGES/ --sort-output $(SOURCES)
mo:
# german translation
msgfmt -o locale/de/LC_MESSAGES/linkcheck.mo \
locale/de/LC_MESSAGES/linkcheck.po