File: rules

package info (click to toggle)
liblinebreak 0.9.6-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 176 kB
  • ctags: 132
  • sloc: ansic: 2,403; makefile: 134; sed: 3
file content (24 lines) | stat: -rwxr-xr-x 475 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
#!/usr/bin/make -f

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	DEBFLAGS += -O0
else
	DEBFLAGS += -O2
endif
DEBFLAGS += -D_REENTRANT

%:
	dh $@

build: build-stamp
build-stamp:
	dh build --before dh_auto_build
	sed 's/$$(RELFLAGS)/$$(RELFLAGS) $$(DEBFLAGS)/g' Makefile > Makefile.tmp && \
	$(MAKE) -f Makefile.tmp release DEBFLAGS="$(DEBFLAGS)" && \
	rm Makefile.tmp
	dh build --after dh_auto_build
	touch build-stamp

binary-arch: build
binary: binary-arch binary-indep