File: rules

package info (click to toggle)
python-markdown 3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,168 kB
  • sloc: python: 12,708; makefile: 66; sh: 7
file content (25 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export PYBUILD_NAME=markdown
export PYGMENTS_VERSION=2.7.1

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	LC_ALL=C.UTF-8 XDG_CACHE_HOME=$(CURDIR)/build/cache PYTHONPATH=$(CURDIR) mkdocs build -d build/docs
endif

ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
override_dh_installdocs:
	dh_installdocs
	dh_mkdocs -T mkdocs -T libjs-underscore -T mkdocs-nature
endif

override_dh_compress:
	dh_compress -X.txt -Xfavicon.ico -Xsearch_index.json -Xsitemap.xml -Xchangelog.html

.PHONY: override_dh_auto_build override_dh_compress