mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 14:30:30 +00:00
54 lines
1.8 KiB
Makefile
Executable file
54 lines
1.8 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
DEB_PYTHON_SYSTEM:=pycentral
|
|
DEB_DH_INSTALLCHANGELOGS_ARGS:=doc/changelog.txt
|
|
|
|
# workaround for Debian bug #486848
|
|
binary-arch binary-indep: install-arch install-indep
|
|
|
|
common-install-arch::
|
|
$(MAKE) locale
|
|
$(MAKE) -C doc/html all
|
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
include /usr/share/cdbs/1/class/python-distutils.mk
|
|
|
|
ROOTDIR=$(CURDIR)/debian/linkchecker
|
|
DOCDIR=$(ROOTDIR)/usr/share/doc/linkchecker
|
|
SHAREDIR=$(ROOTDIR)/usr/share/linkchecker
|
|
HTMLDIR=$(SHAREDIR)/lconline
|
|
CGIDIR=$(ROOTDIR)/usr/lib/cgi-bin
|
|
LOCALEDIR=$(ROOTDIR)/usr/share/locale
|
|
ETCDIR=$(ROOTDIR)/etc
|
|
|
|
common-configure-arch::
|
|
python setup.py sdist --manifest-only
|
|
|
|
common-install-arch::
|
|
# install system wide configuration files in etc
|
|
install -m 644 config/linkcheckerrc $(ETCDIR)/linkchecker/
|
|
install -m 644 config/logging.conf $(ETCDIR)/linkchecker/
|
|
# 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/*.js $(HTMLDIR)
|
|
install -m 644 cgi-bin/lconline/*.css $(HTMLDIR)
|
|
install -m 755 cgi-bin/lc.cgi $(CGIDIR)
|
|
# install bash_completion script
|
|
install -m 644 config/linkchecker-completion $(ETCDIR)/bash_completion.d
|
|
# install .mo files
|
|
install -m 644 build/share/locale/de/LC_MESSAGES/LinkChecker.mo $(LOCALEDIR)/de/LC_MESSAGES/
|
|
# apache configuration
|
|
install -m 644 config/linkchecker.apache2.conf $(ETCDIR)/apache2/conf.d/linkchecker
|
|
|
|
install/linkchecker::
|
|
sed -i '1s,#!/usr/bin/python2\..,#!/usr/bin/python,' $(CURDIR)/debian/tmp/usr/bin/linkchecker
|
|
|
|
install/linkchecker-gui::
|
|
sed -i '1s,#!/usr/bin/python2\..,#!/usr/bin/python,' $(CURDIR)/debian/tmp/usr/bin/linkchecker-gui
|
|
|
|
# clean generated files
|
|
clean::
|
|
rm -f doc/html/*.qch doc/html/*.qhc
|
|
rm -f _LinkChecker_configdata.py
|