mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 22:40:33 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2659 e7d03fd6-7b0d-0410-9947-9c21f3af8025
41 lines
1.3 KiB
Makefile
Executable file
41 lines
1.3 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
common-install-impl::
|
|
$(MAKE) locale
|
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
include /usr/share/cdbs/1/class/python-distutils.mk
|
|
|
|
DEB_CLEAN_EXCLUDE = gui/glinkchecker.py.orig
|
|
DEB_PYTHON_COMPILE_VERSION = 2.4
|
|
PACKAGE = linkchecker
|
|
ROOT = $(CURDIR)/debian/$(PACKAGE)
|
|
PYTHON = python$(DEB_PYTHON_COMPILE_VERSION)
|
|
DOCDIR = $(ROOT)/usr/share/doc/$(PACKAGE)
|
|
CGIDIR = $(ROOT)/usr/lib/cgi-bin/lconline
|
|
HTMLDIR = $(ROOT)/var/www/lconline
|
|
SHARE = $(ROOT)/usr/share/$(PACKAGE)
|
|
ETC = $(ROOT)/etc
|
|
|
|
common-configure-arch::
|
|
$(PYTHON) setup.py sdist --manifest-only
|
|
|
|
common-install-impl::
|
|
# remove example files, we install them with dh_installexamples
|
|
rm -r $(ROOT)/usr/share/linkchecker/examples
|
|
# install system wide configuration files in etc
|
|
mv $(SHARE)/linkcheckerrc $(ETC)/$(PACKAGE)/
|
|
mv $(SHARE)/logging.conf $(ETC)/$(PACKAGE)/
|
|
# install CGI files
|
|
install -m 644 cgi/lconline/*.html $(HTMLDIR)
|
|
install -m 644 cgi/lconline/*.de $(HTMLDIR)
|
|
install -m 644 cgi/lconline/*.en $(HTMLDIR)
|
|
install -m 644 cgi/lconline/check.js $(HTMLDIR)
|
|
install -m 755 cgi/lc.cgi $(CGIDIR)
|
|
install -m 755 cgi/lc.fcgi $(CGIDIR)
|
|
# install bash_completion script
|
|
install -m 644 config/linkchecker-completion $(ETC)/bash_completion.d
|
|
|
|
binary-post-install/linkchecker::
|
|
# remove the README file which somehow gets installed
|
|
rm $(DOCDIR)/README
|