File: rules

package info (click to toggle)
mdformat 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: python: 11,287; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/make -f

export PYBUILD_NAME=mdformat
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs -O--buildsystem=pybuild
        # remove cruft from the sphinx docs, should really be properly
        # built instead
	rm -r debian/mdformat/usr/share/doc/mdformat/_static/
	rm -r debian/mdformat/usr/share/doc/mdformat/conf.py
	rm -r debian/mdformat/usr/share/doc/mdformat/requirements.txt
        # could also be done with a dh_installchangelogs override, but
        # then we'd need to remove this file anyway
	mv debian/mdformat/usr/share/doc/mdformat/users/changelog.md debian/mdformat/usr/share/doc/mdformat/changelog