File: rules

package info (click to toggle)
mate-menu 22.04.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,028 kB
  • sloc: python: 3,777; xml: 364; makefile: 15; sh: 2
file content (24 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download | duplicates (3)
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

DHFLAGS=--parallel
export PYBUILD_SYSTEM=distutils

%:
	dh $@ $(DHFLAGS) --with python3 --buildsystem=pybuild

override_dh_auto_build:
	cp po/mate-menu.pot po/mate-menu.pot.bak
	dh_auto_build

override_dh_auto_clean:
	test -f po/mate-menu.pot.bak && mv po/mate-menu.pot.bak po/mate-menu.pot || true
	rm -Rf mate_menu.egg-info/

	# dh_auto_clean with pybuild/distutils only works if setup.py is
	# present
	if [ -f setup.py ]; then \
		dh_auto_clean; \
	fi

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..