2000-09-10 14:53:52 +00:00
|
|
|
# This Makefile is only used by developers.
|
2001-11-16 11:03:56 +00:00
|
|
|
PYTHON=python2.1
|
|
|
|
|
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)
|
|
|
|
|
HTMLDIR=shell1.sourceforge.net:$(PACKAGEDIR)/htdocs
|
2001-09-18 19:16:20 +00:00
|
|
|
#HOST=treasure.calvinsplayground.de
|
2002-01-04 21:10:01 +00:00
|
|
|
HOST=www.debianplanet.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
|
2001-02-22 00:39:40 +00:00
|
|
|
OFFLINETESTS = test_base test_misc test_file test_frames
|
|
|
|
|
ONLINETESTS = test_mail test_http test_https test_news test_ftp
|
2000-03-19 14:24:33 +00:00
|
|
|
DESTDIR=/.
|
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
|
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
|
2001-11-20 20:48:10 +00:00
|
|
|
$(PYTHON) setup.py sdist --formats=gztar,zip bdist_wininst
|
2001-03-04 19:42:35 +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:
|
|
|
|
|
debuild -sgpg -pgpg -k32EC6F3E -rfakeroot
|
|
|
|
|
|
2002-02-08 18:49:46 +00:00
|
|
|
deb_signed: cleandeb
|
|
|
|
|
# ready for upload, signed with my GPG key
|
2002-01-02 15:56:32 +00:00
|
|
|
env CVSROOT=:pserver:anonymous@cvs.linkchecker.sourceforge.net:/cvsroot/linkchecker cvs-buildpackage -Mlinkchecker -W/home/calvin/projects/cvs-build -sgpg -pgpg -k32EC6F3E -rfakeroot
|
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)
|
|
|
|
|
env CVSROOT=:pserver:anonymous@cvs.linkchecker.sourceforge.net:/cvsroot/linkchecker cvs-buildpackage -Mlinkchecker -W/home/calvin/projects/cvs-build -us -uc -rfakeroot
|
|
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
files: locale
|
2001-11-16 11:03:56 +00:00
|
|
|
env http_proxy="" $(PYTHON) $(PACKAGE) $(LCOPTS) -i$(HOST) http://$(HOST)/
|
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
|
|
|
|
|
|
2001-05-01 11:14:22 +00:00
|
|
|
upload: distclean dist files VERSION
|
2001-04-19 21:22:24 +00:00
|
|
|
scp debian/changelog $(HTMLDIR)/changes.txt
|
|
|
|
|
scp README $(HTMLDIR)/readme.txt
|
2002-06-09 15:32:14 +00:00
|
|
|
scp linkchecker-out.*.gz $(HTMLDIR)
|
2001-04-19 21:22:24 +00:00
|
|
|
scp VERSION $(HTMLDIR)/raw/
|
2002-04-27 13:06:27 +00:00
|
|
|
#scp dist/* $(HTMLDIR)/
|
|
|
|
|
ncftpput upload.sourceforge.net /incoming dist/* && read -p "Make new SF file releases and then press Enter:"
|
2001-04-19 21:22:24 +00:00
|
|
|
ssh -C -t shell1.sourceforge.net "cd $(PACKAGEDIR) && make"
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2002-05-06 19:38:16 +00:00
|
|
|
upload-devel: distclean dist VERSION-DEVEL
|
|
|
|
|
scp debian/changelog $(HTMLDIR)/changes-devel.txt
|
|
|
|
|
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:
|
2001-11-16 11:03:56 +00:00
|
|
|
$(PYTHON) test/regrtest.py $(OFFLINETESTS)
|
2001-02-22 00:39:40 +00:00
|
|
|
|
|
|
|
|
onlinetest:
|
2001-11-16 11:03:56 +00:00
|
|
|
$(PYTHON) test/regrtest.py $(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
|