File: rules

package info (click to toggle)
cmake-format 0.6.13-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,344 kB
  • sloc: python: 16,993; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 1,194 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

export PYBUILD_SYSTEM=distutils

%:
	# Force pybuild otherwise makefile is used.
	dh $@ --buildsystem=pybuild

GEN_MANPAGE := PYTHONPATH=$(CURDIR) argparse-manpage  --function get_argparser --author='Josh Bialkowski' --author-email=josh.bialkowski@gmail.com --url=https://github.com/cheshirekow/cmake_format
override_dh_auto_install:
	dh_auto_install

	mkdir -p debian/cmake-format/usr/share/man/man1
	$(GEN_MANPAGE) --project-name=cmake-format     --pyfile ./cmakelang/format/__main__.py   --output debian/cmake-format/usr/share/man/man1/cmake-format.1
	$(GEN_MANPAGE) --project-name=cmake-annotate   --pyfile ./cmakelang/annotate.py          --output debian/cmake-format/usr/share/man/man1/cmake-annotate.1
	$(GEN_MANPAGE) --project-name=cmake-genparsers --pyfile ./cmakelang/genparsers.py        --output debian/cmake-format/usr/share/man/man1/cmake-genparsers.1
	$(GEN_MANPAGE) --project-name=cmake-lint       --pyfile ./cmakelang/lint/__main__.py     --output debian/cmake-format/usr/share/man/man1/cmake-lint.1

override_dh_auto_test:
	PYBUILD_TEST_BASE_OVERRIDE=$(CURDIR) dh_auto_test