File: rules

package info (click to toggle)
kupfer 0%2Bv320-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,780 kB
  • sloc: python: 29,091; makefile: 92; sh: 78; xml: 3
file content (36 lines) | stat: -rwxr-xr-x 1,185 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
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

%:
	dh $@ --with python3

clean:
	./waf distclean
	rm -fr build .lock-waf* po/.intlcache
	find Documentation -name "*.html" -delete
	find waflib -name "*.pyc" -delete
	dh $@

override_dh_auto_configure:
	PYTHONDIR=/usr/share/kupfer ./waf configure --prefix=/usr --nopyc --nopyo \
		--bindir=/usr/share/kupfer --no-runtime-deps --no-hooks

override_dh_auto_install:
	./waf install --destdir=$(CURDIR)/debian/kupfer
	install -m 0755 $(CURDIR)/build/bin/kupfer $(CURDIR)/debian/kupfer/usr/share/kupfer/kupfer-activate.sh
	mkdir -p $(CURDIR)/debian/kupfer/usr/share/icons/hicolor/16x16/apps/
	install -m 0644 $(CURDIR)/debian/hicolor/16x16/apps/kupfer.png \
                $(CURDIR)/debian/kupfer/usr/share/icons/hicolor/16x16/apps/kupfer.png
	rm -f $(CURDIR)/debian/kupfer/usr/share/kupfer/kupfer/kupfer
	rm -f $(CURDIR)/debian/kupfer/usr/share/gnome/help/kupfer/*/license.page
	rm -f $(CURDIR)/debian/kupfer/usr/share/kupfer/art/COPYING

override_dh_installdocs:
	make -C Documentation
	dh_installdocs

override_dh_installman:
	rst2man Documentation/Manpage.rst build/kupfer.1
	dh_installman build/kupfer.1

override_dh_installchangelogs:
	dh_installchangelogs NEWS