File: rules

package info (click to toggle)
attal 1.0~rc2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,348 kB
  • ctags: 7,428
  • sloc: cpp: 55,101; sh: 267; ansic: 100; makefile: 54
file content (68 lines) | stat: -rwxr-xr-x 1,411 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
#!/usr/bin/make -f

export QTDIR=/usr/share/qt4
#export DH_OPTIONS
export ATT_PREFIX=/usr
export ATT_LIB_PREFIX=/usr/lib/attal

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	MAKEFLAGS += -j$(NUMJOBS)
endif

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh_testdir
	./autogen.sh
#	qmake Makefile.pro
	$(MAKE)
	lrelease i18n/*/*.ts
	touch build-stamp

clean: clean-stamp unpatch
clean-stamp:
	dh_testdir
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -rf */.ui */.moc
	rm -f i18n/*/*.qm
	rm -f build-stamp
	rm -f attal-* lib*.so* Makefile */Makefile
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build install

binary: binary-arch binary-indep

get-orig-source:
	uscan --dehs --download --destdir . --package attal \
		--upstream-version 0 --repack \
		--force-download --watchfile $(dir $(_))/watch

.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure get-orig-source