File: rules

package info (click to toggle)
mserver 0.23a-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 84 kB
  • ctags: 64
  • sloc: ansic: 670; makefile: 55; sh: 29
file content (47 lines) | stat: -rwxr-xr-x 818 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
#! /usr/bin/make -f

export DH_COMPAT := 3

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

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

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

binary: binary-arch binary-indep

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs usr/sbin usr/bin etc
	install mserver debian/mserver/usr/sbin
	install tcpconn debian/mserver/usr/bin
	cp -p mserver.conf debian/mserver/etc
	dh_installdocs README*
	dh_installinit
	dh_installman debian/mserver.8 debian/tcpconn.1
	dh_installchangelogs
	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