File: rules

package info (click to toggle)
xmbdfed 4.7patch1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,728 kB
  • ctags: 2,508
  • sloc: ansic: 37,440; makefile: 105
file content (46 lines) | stat: -rwxr-xr-x 744 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
#! /usr/bin/make -f

export DH_COMPAT := 3

CFLAGS := -O2 -Wall
ifneq ($(findstring debug,$(DEB_BUILD_OPTIONS)),)
CFLAGS += -g
endif

clean:
	dh_testdir
	dh_testroot
	dh_clean build.stamp
	$(MAKE) realclean

build: build.stamp
build.stamp:
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)"
	> $@

binary: binary-arch binary-indep

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs usr/bin
	install xmbdfed debian/xmbdfed/usr/bin
	dh_installdocs README
	dh_installexamples xmbdfedrc
	dh_installmenu
	dh_installman xmbdfed.man
	dh_installchangelogs CHANGES
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build

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