File: rules

package info (click to toggle)
gnome-shell-extension-dashtodock 103-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,580 kB
  • sloc: javascript: 10,058; xml: 642; makefile: 143
file content (19 lines) | stat: -rwxr-xr-x 643 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
#!/usr/bin/make -f

BASEDIR=debian/gnome-shell-extension-dashtodock/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com

%:
	dh $@

execute_after_dh_install:
	rm -f $(BASEDIR)/COPYING
	rm -f $(BASEDIR)/README.md
	rm -rf $(BASEDIR)/schemas

# eslint tests seem a bit flaky
override_dh_auto_test:

override_dh_gencontrol:
	dh_gencontrol -- \
		-Vgnome:MinimumVersion=$(shell python3 -c "import json; print(min(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))") \
		-Vgnome:MaximumVersion=$(shell python3 -c "import json; print(1+max(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))")