File: rules

package info (click to toggle)
libppd 2%3A0.10-7.3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,736 kB
  • ctags: 301
  • sloc: sh: 8,899; ansic: 3,276; makefile: 96
file content (82 lines) | stat: -rwxr-xr-x 2,108 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess.
#
# This version is for a multibinary package. It also allows you to build any
# of the binary packages independantly, via binary-<package> targets.

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1
CFLAGS = -Wall -g
LDFLAGS = -lglib-2.0
INSTALL = install
INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
INSTALL_DIR     = $(INSTALL) -p -d -o root -g root  -m  755
export CFLAGS LDFLAGS INSTALL_FILE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DIR

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -O0
else
 CFLAGS += -O2
endif
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 INSTALL_PROGRAM += -s
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 MAKEFLAGS += -j$(NUMJOBS)
endif

build: build-stamp
build-stamp:
	dh_testdir
	# avoid time skews
	dh_autoreconf
	./configure --prefix=/usr --with-glib=2	 --mandir=/usr/share/man 
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp config.log
	[ ! -f Makefile ] || $(MAKE) distclean distclean-generic
	dh_autoreconf_clean
	dh_clean
	#find config.sub config.guess ltmain.sh COPYING INSTALL intl -type l | xargs -r rm

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) DESTDIR=`pwd`/debian/tmp install
	dh_movefiles


# Nothing to do.
binary-indep:

# Build architecture dependant packages using the common target.
binary-arch: install
	#dh_testversion 2
	dh_testdir
	dh_testroot
	dh_installdocs AUTHORS # NEWS README
	dh_installexamples
	dh_installchangelogs # ChangeLog
	dh_compress
	dh_strip
	dh_fixperms
	# Keep -V on until the library reaches major version 1.
	dh_makeshlibs -V
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

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