File: rules

package info (click to toggle)
backintime 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,632 kB
  • sloc: python: 23,454; sh: 859; makefile: 172; xml: 62
file content (43 lines) | stat: -rwxr-xr-x 1,182 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
37
38
39
40
41
42
43
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_auto_clean:
	rm -rf locale common/po/*.mo
	find $(CURDIR) -name "*\.py[co]" -delete
	# these get regenerated
	rm -f */man/C/*.1.gz
	rm -f common/Makefile qt/Makefile
	rm -f common/config-example-*.gz

override_dh_auto_configure:
	cd common && ./configure
	cd qt && ./configure

override_dh_auto_build:
	cd common && $(MAKE) build
	cd qt && $(MAKE) build

override_dh_auto_install:
	cd common && DESTDIR=../debian/backintime-common $(MAKE) install
	#rm -rf $(CURDIR)/debian/backintime-common/usr/share/doc/backintime-common
	rm -f $(CURDIR)/debian/backintime-common/usr/share/doc/backintime/LICENSE
	rm -rf $(CURDIR)/debian/backintime-common/usr/share/doc/backintime-common/LICENSES/
	rm -f $(CURDIR)/debian/backintime-common/usr/share/doc/backintime-common/CHANGES

	cd qt && DESTDIR=../debian/backintime-qt $(MAKE) install
	rm -rf $(CURDIR)/debian/backintime-qt/usr/share/doc/backintime-qt

override_dh_python3:
	dh_python3 /usr/share/backintime/

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

override_dh_compress:
	dh_compress -XLICENSE

%:
	dh $@