File: rules

package info (click to toggle)
9menu 1.8-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 228 kB
  • sloc: ansic: 3,132; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 391 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
#!/usr/bin/make -f

CC = gcc
CFLAGS = -g -Wall

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif


%:
	dh $@


override_dh_auto_build:
	xmkmf
	dh_auto_build -- CC="$(CC)" CCOPTIONS+="$(CFLAGS)" 9menu

override_dh_installchangelogs:
	sed -n '1,/\*\// {s/^.*\*[ /]\?//; s/9menu.c/Taken from &/; p}' 9menu.c > changelog
	dh_installchangelogs changelog