File: rules

package info (click to toggle)
unicon 3.0.4+dfsg1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 21,896 kB
  • ctags: 2,526
  • sloc: ansic: 185,000; cpp: 12,570; makefile: 828; sh: 298
file content (63 lines) | stat: -rwxr-xr-x 1,471 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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.
#
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# This has to be exported to make some magic below work.

# shared library versions, option 1
version=0.0
major=0


build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

build-stamp:
	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
	$(MAKE)
	$(MAKE) data
	touch build-stamp

clean:
	rm -f build-stamp 
	[ ! -f "Makefile" ] || $(MAKE) distclean
	dh_clean

install: build
	dh_prep
	dh_installdirs
	$(MAKE) install prefix=`pwd`/debian/unicon-imc2/usr DESTDIR=`pwd`/debian/unicon-imc2/usr
	$(MAKE) data-install prefix=`pwd`/debian/unicon-imc2/usr 
	cp -f debian/unicon-imc2.override `pwd`/debian/unicon-imc2/usr/share/lintian/overrides/unicon-imc2

binary-indep: build install

binary-arch: build install
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installcron
	dh_installinfo
	dh_installchangelogs ChangeLog
	dh_strip
	dh_link
	dh_compress
	dh_fixperms
	# You may want to make some executables suid here.
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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