File: rules

package info (click to toggle)
turing 0.11-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,356 kB
  • sloc: python: 106,582; xml: 101; makefile: 61; sh: 29
file content (26 lines) | stat: -rwxr-xr-x 647 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

export QT_SELECT := qt5

%:
	dh $@ --with python3


DESTDIR = $(CURDIR)/debian/turing

override_dh_install:
	dh_install
	: # remove batch programs under src/tools
	find $(DESTDIR)/usr/share/turing/src/tools \
	  -name "*.sh" -o -name "*.bat" | xargs rm -f
	: # remove vcs control files
	find $(DESTDIR)/usr/share/turing/src -name ".gitignore" | xargs rm -f
	: # python3 is the default python
	for f in $(DESTDIR)/usr/share/turing/pyqode/python/backend/*.py; do \
	  sed -i "s%usr/bin/env python%usr/bin/python3%" $$f; \
	done

override_dh_auto_clean:
	dh_auto_clean
	find . -name __pycache__| xargs rm -rf
	rm -f src/lang/*.qm