mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-18 23:10:32 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3385 e7d03fd6-7b0d-0410-9947-9c21f3af8025
43 lines
1.3 KiB
Makefile
Executable file
43 lines
1.3 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
DEB_PYTHON_SYSTEM=pycentral
|
|
DEB_PYTHON_COMPILE_VERSION=2.4
|
|
|
|
common-install-arch::
|
|
$(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
|
|
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-arch::
|
|
# 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-bin/lconline/*.html $(HTMLDIR)
|
|
install -m 644 cgi-bin/lconline/*.de $(HTMLDIR)
|
|
install -m 644 cgi-bin/lconline/*.en $(HTMLDIR)
|
|
install -m 644 cgi-bin/lconline/check.js $(HTMLDIR)
|
|
install -m 755 cgi-bin/lc.cgi $(CGIDIR)
|
|
install -m 755 cgi-bin/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
|