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)
|
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
|
|
|
|
|
./setup.py config -lcrypto
|
|
|
|
|
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
|
|
|
|
|
rm -rf debian/linkchecker debian/linkchecker-ssl
|
|
|
|
|
./setup.py build
|
|
|
|
|
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-01-22 23:02:54 +00:00
|
|
|
./setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
2001-05-18 19:09:28 +00:00
|
|
|
# remove man pages, we install them with dh_installman
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/man
|
2001-05-24 15:48:07 +00:00
|
|
|
# remove files, we install them below
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/share/linkchecker/examples
|
2001-05-18 19:09:28 +00:00
|
|
|
# remove any SSL related files
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/lib/python2.0/site-packages/linkcheckssl
|
|
|
|
|
# install additional doc files
|
|
|
|
|
install -c -m 644 DNS/README $(DOCDIR)/README_DNS.txt
|
|
|
|
|
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
|
2000-10-13 21:58:45 +00:00
|
|
|
# dh_installdebconf
|
2001-05-01 13:54:27 +00:00
|
|
|
dh_installdocs
|
2001-05-24 15:48:07 +00:00
|
|
|
# dh_installexamples
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installmenu
|
|
|
|
|
# dh_installemacsen
|
|
|
|
|
# dh_installpam
|
|
|
|
|
# dh_installinit
|
|
|
|
|
# dh_installcron
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_installman linkchecker.1
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installinfo
|
2000-11-20 22:25:55 +00:00
|
|
|
# dh_undocumented 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_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
|
|
|
|
|
|
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
|