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.
|
2000-11-09 12:02:38 +00:00
|
|
|
PACKAGE=linkchecker
|
|
|
|
|
DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
|
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.
|
2000-11-09 12:02:38 +00:00
|
|
|
export DH_COMPAT=2
|
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
|
|
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
|
configure-stamp:
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_testdir
|
2000-11-09 12:02:38 +00:00
|
|
|
python setup.py config -lcrypto
|
|
|
|
|
touch configure-stamp
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
build: configure-stamp build-stamp
|
|
|
|
|
build-stamp:
|
|
|
|
|
dh_testdir
|
|
|
|
|
rm -rf debian/$(PACKAGE)
|
|
|
|
|
python setup.py build
|
2000-02-26 10:24:46 +00:00
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
dh_testdir
|
2000-11-09 12:02:38 +00:00
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
|
$(MAKE) clean
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_clean
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
python setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
2000-11-22 17:03:35 +00:00
|
|
|
# remove man pages, we install them with dh_installmanpages
|
|
|
|
|
rm -rf debian/$(PACKAGE)/usr/man
|
2000-12-16 13:09:24 +00:00
|
|
|
# remove example files, we install them with dh_installexamples
|
|
|
|
|
rm -rf debian/$(PACKAGE)/usr/share/linkchecker
|
2000-10-13 21:58:45 +00:00
|
|
|
# install additional doc files
|
2000-12-16 13:09:24 +00:00
|
|
|
install -d -m 755 $(DOCDIR)/examples
|
2000-11-09 12:02:38 +00:00
|
|
|
install -c -m 644 DNS/README $(DOCDIR)/README_DNS.txt
|
2000-12-16 13:09:24 +00:00
|
|
|
install -d -m 755 $(DOCDIR)/tests/linkcheck
|
2001-01-05 11:42:11 +00:00
|
|
|
install -c -m 644 test/*.html test/*.py test/robots.txt $(DOCDIR)/tests/linkcheck
|
2000-12-16 13:09:24 +00:00
|
|
|
install -d -m 755 $(DOCDIR)/tests/dns
|
|
|
|
|
install -c -m 644 tests/*.py $(DOCDIR)/tests/dns
|
|
|
|
|
# install system wide configuration file in etc
|
|
|
|
|
install -c -m 644 linkcheckerrc debian/$(PACKAGE)/etc
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
# We have nothing to do by default.
|
|
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
|
binary-arch: build install
|
|
|
|
|
# dh_testversion
|
|
|
|
|
dh_testdir
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_testroot
|
2000-10-13 21:58:45 +00:00
|
|
|
# dh_installdebconf
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_installdocs
|
2000-12-16 13:09:24 +00:00
|
|
|
dh_installexamples lc.* lconline/*.html
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installmenu
|
|
|
|
|
# dh_installemacsen
|
|
|
|
|
# dh_installpam
|
|
|
|
|
# dh_installinit
|
|
|
|
|
# dh_installcron
|
2000-11-22 17:03:35 +00:00
|
|
|
dh_installmanpages
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installinfo
|
2000-11-20 22:25:55 +00:00
|
|
|
# dh_undocumented linkchecker.1
|
2000-04-07 11:43:37 +00:00
|
|
|
dh_installchangelogs
|
2000-12-16 13:09:24 +00:00
|
|
|
# dh_link
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_strip
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_compress
|
|
|
|
|
dh_fixperms
|
|
|
|
|
# You may want to make some executables suid here.
|
|
|
|
|
# dh_suidregister
|
|
|
|
|
# dh_makeshlibs
|
|
|
|
|
dh_installdeb
|
|
|
|
|
# dh_perl
|
2000-07-12 20:10:12 +00:00
|
|
|
# dh_shlibdeps
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_gencontrol
|
|
|
|
|
dh_md5sums
|
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
2000-11-09 12:02:38 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|