File: rules

package info (click to toggle)
plume-creator 0.66%2Bdfsg1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,504 kB
  • ctags: 4,096
  • sloc: cpp: 23,526; makefile: 106; sh: 47; xml: 15
file content (86 lines) | stat: -rwxr-xr-x 1,999 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/make -f

export QT_SELECT := qt5

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS2:=-Wl,-z,defs  -Wl,-as-needed -Wl,--no-undefined

config: config-stamp
config-stamp: 
	dh_testdir
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
	cd translations && lrelease *.ts
	CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
	CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
	LFLAGS="$(LDFLAGS) $(LDFLAGS2)" \
		qmake -makefile plume-creator.pro
	touch $@

build-stamp: config
	dh_testdir
	$(MAKE) \
		LFLAGS="$(LDFLAGS) $(LDFLAGS2)"
	touch $@

build-indep: build-stamp

build-arch: build-stamp

build: build-arch build-indep

clean: 
	dh_testdir
	dh_testroot
	rm -f build-stamp config-stamp
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f Makefile plume-creator
	rm -f `find . -name "*.o"`
	rm -f `find . -name "*.a"`
	rm -f translations/*.qm
	rm -rf resources/unix/pixmaps
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/plume-creator install
	rm -f debian/*/usr/share/plume-creator/COPYING
	rm -f debian/*/usr/share/plume-creator/License

# Build architecture-independent files here.
binary-indep: install

# Build architecture-dependent files here.
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_install
	dh_installman
	dh_link
	dh_strip --dbg-package=plume-creator-dbg
	dh_compress
	dh_fixperms
	[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

clean-orig:
	dh_testdir
	rm -rf externals/hunspell
	rm -rf externals/quazip
	rm -rf externals/zlib

binary: binary-indep binary-arch
.PHONY: config build-arch build-indep build clean binary-indep binary-arch binary install clean-orig