File: rules

package info (click to toggle)
enet 1.3.12%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 488 kB
  • ctags: 699
  • sloc: ansic: 4,728; makefile: 46
file content (37 lines) | stat: -rwxr-xr-x 907 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
#!/usr/bin/make -f

CFLAGS += -W -Wall -fPIC

%:
	dh $@ --with autoreconf

VERSION := 1.3.12
get-orig-source:
	wget --no-clobber -O enet-$(VERSION).tar.gz http://enet.bespin.org/download/enet-$(VERSION).tar.gz
	mkdir enet-$(VERSION)+ds
	tar --strip-components=1 -C enet-$(VERSION)+ds -xzf enet-$(VERSION).tar.gz
	set -e; cd enet-$(VERSION)+ds; \
		rm -f enet.lib enet64.lib; \
		rm -rf docs/html; \
		rm -rf Makefile.in aclocal.m4 compile config.guess config.sub configure depcomp install-sh ltmain.sh m4 missing; \
		chmod -x enet.dsp docs/*.dox
	tar -cJf enet_$(VERSION)+ds.orig.tar.xz enet-$(VERSION)+ds
	rm -rf enet-$(VERSION)+ds

override_dh_auto_build:
	dh_auto_build
	doxygen

override_dh_clean:
	[ ! -d docs/html ] || rm -r docs/html/
	dh_clean

override_dh_autoreconf:
	mkdir -p m4
	dh_autoreconf

override_dh_strip:
	dh_strip --dbg-package=libenet7-dbg

override_dh_builddeb:
	dh_builddeb -- -Zxz