File: rules

package info (click to toggle)
pycparser 3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,252 kB
  • sloc: python: 8,647; ansic: 1,981; makefile: 12; sh: 11
file content (18 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_DESTDIR_python3=debian/python3-pycparser
export PYBUILD_BEFORE_TEST=ln -s {dir}/examples {dir}/utils {build_dir}
export PYBUILD_AFTER_TEST=rm -f {build_dir}/utils {build_dir}/examples

%:
	dh $@ --with python3 --buildsystem pybuild

override_dh_auto_build: clean-source
	cd pycparser && python3 _ast_gen.py
	dh_auto_build

override_dh_auto_clean: clean-source
	dh_auto_clean

clean-source:
	cd pycparser && rm -f c_ast.py