File: rules

package info (click to toggle)
epic5 2.0.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 4,696 kB
  • ctags: 6,357
  • sloc: ansic: 69,814; makefile: 715; ruby: 227; sh: 178; perl: 13
file content (72 lines) | stat: -rwxr-xr-x 1,583 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
69
70
71
72
#!/usr/bin/make -f

CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	./configure --prefix=/usr --mandir=/usr/share/man \
	  --with-ssl \
	  --with-ipv6 \
	  --with-perl \
	  --libexecdir=/usr/lib/epic5 --program-prefix=$(CURDIR)/debian/epic5
	$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
	touch build-stamp

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


install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) install


install:	build install-stamp


binary-indep:
# Nothing to see, move along...


binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs -a doc/* -XCVS -Xdoc/epic.1
	dh_installmenu -a
ifndef DEBUG
	dh_strip -a
endif
	install -m 644 $(CURDIR)/debian/local \
		       $(CURDIR)/debian/epic5/usr/share/epic5/script/local
	dh_installchangelogs -a
	dh_installexamples -a
	install -m 644 debian/epic5.irc $(CURDIR)/debian/epic5/etc/epic5
	install -m 644 $(CURDIR)/debian/local \
		       $(CURDIR)/debian/epic5/usr/share/epic5/script/local
	echo "irc.debian.org:6667" > $(CURDIR)/debian/epic5/etc/epic5/servers
	dh_link -a
	dh_compress -a
	dh_fixperms -a
	dh_makeshlibs -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_installdeb -a
	dh_md5sums -a
	dh_builddeb -a


binary:		binary-indep binary-arch


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