2000-02-26 10:24:46 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
2001-05-18 19:09:28 +00:00
|
|
|
PACKAGE=linkchecker
|
|
|
|
|
DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
|
2001-11-16 11:03:56 +00:00
|
|
|
PYTHON=python2.1
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
|
|
# This is the debhelper compatability version to use.
|
2001-04-03 19:32:11 +00:00
|
|
|
export DH_COMPAT=3
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
configure: configure-stamp
|
|
|
|
|
configure-stamp:
|
|
|
|
|
dh_testdir
|
2001-11-20 20:27:25 +00:00
|
|
|
$(PYTHON) setup.py config
|
2001-05-24 15:48:07 +00:00
|
|
|
touch configure-stamp
|
2001-05-18 19:09:28 +00:00
|
|
|
|
2001-04-03 19:32:11 +00:00
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
build: configure-stamp build-stamp
|
|
|
|
|
build-stamp:
|
|
|
|
|
dh_testdir
|
2001-11-16 11:03:56 +00:00
|
|
|
$(PYTHON) setup.py build
|
2001-05-24 15:48:07 +00:00
|
|
|
touch build-stamp
|
2001-04-03 19:32:11 +00:00
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
clean:
|
|
|
|
|
dh_testdir
|
|
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
|
$(MAKE) clean
|
|
|
|
|
dh_clean
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
install: build
|
|
|
|
|
dh_testdir
|
|
|
|
|
dh_clean -k
|
2000-03-19 14:24:33 +00:00
|
|
|
dh_installdirs
|
2000-11-09 12:02:38 +00:00
|
|
|
$(MAKE) locale
|
2001-11-16 11:03:56 +00:00
|
|
|
$(PYTHON) setup.py install --root=$(CURDIR)/debian/$(PACKAGE) --no-compile
|
2002-02-24 12:29:35 +00:00
|
|
|
# remove example files, we install them below
|
2001-05-24 15:48:07 +00:00
|
|
|
rm -r debian/$(PACKAGE)/usr/share/linkchecker/examples
|
2001-05-18 19:09:28 +00:00
|
|
|
# install additional doc files
|
|
|
|
|
install -c -m 644 test/*.py $(DOCDIR)/test
|
|
|
|
|
install -c -m 644 test/html/*.html $(DOCDIR)/test/html
|
|
|
|
|
install -c -m 644 test/output/test_* $(DOCDIR)/test/output
|
2001-05-24 15:48:07 +00:00
|
|
|
# install CGI files
|
|
|
|
|
install -c -m 644 lconline/*.html $(DOCDIR)/lconline
|
|
|
|
|
install -c -m 755 lc.cgi debian/$(PACKAGE)/usr/lib/cgi-bin/lconline
|
2001-05-18 19:09:28 +00:00
|
|
|
# install system wide configuration file in etc
|
|
|
|
|
mv debian/$(PACKAGE)/usr/share/linkchecker/linkcheckerrc debian/$(PACKAGE)/etc
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
dh_testdir
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_testroot
|
2001-05-01 13:54:27 +00:00
|
|
|
dh_installdocs
|
2002-02-24 12:29:35 +00:00
|
|
|
#dh_installman linkchecker.1
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_installchangelogs
|
|
|
|
|
dh_link
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_strip
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_compress
|
|
|
|
|
dh_fixperms
|
|
|
|
|
dh_installdeb
|
|
|
|
|
dh_gencontrol
|
|
|
|
|
dh_md5sums
|
|
|
|
|
dh_builddeb
|
|
|
|
|
|
2001-05-18 19:09:28 +00:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
|
binary-arch: build install
|
|
|
|
|
|
2000-02-26 10:24:46 +00:00
|
|
|
binary: binary-indep binary-arch
|
2000-11-09 12:02:38 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|