File: rules

package info (click to toggle)
libnet-arp-perl 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 180 kB
  • ctags: 181
  • sloc: ansic: 297; perl: 41; makefile: 26
file content (37 lines) | stat: -rwxr-xr-x 579 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

export DEBIAN_BUILD=1

include /usr/share/quilt/quilt.make

CFLAGS = -Wall -g
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
    CFLAGS += -O0
else
    CFLAGS += -O2
endif

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh_testdir
	dh_auto_configure
	dh_auto_build -- OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
	dh_auto_test
	touch $@

clean: unpatch
	dh $@

install: install-stamp
install-stamp: build
	dh install
	touch $@

binary-indep:

binary-arch: install
	dh $@

binary: binary-indep binary-arch

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