File: rules

package info (click to toggle)
powerpc-utils 1.1.3-24
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 280 kB
  • ctags: 382
  • sloc: ansic: 2,807; makefile: 174; sh: 62
file content (67 lines) | stat: -rwxr-xr-x 1,431 bytes parent folder | download | duplicates (2)
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
#! /usr/bin/make -f
# -*- makefile -*-

install_file 	:= install -p -c -m 644
install_program := install -p -c -m 755
make_directory 	:= install -d -m 755

export DH_COMPAT=3

CFLAGS := -g -Wall

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

build: build-stamp
build-stamp:
	dh_testdir awacs_defs.h

	$(MAKE) autoboot bootsched clock mousemode nvsetenv autoboot.8 bootsched.8 clock.8 mousemode.8 nvsetenv.8 backlight trackpad nvsetvol fblevel fnset lsprop

	touch build-stamp

clean:
	dh_testdir awacs_defs.h

	rm -f build-stamp
	$(MAKE) clean

	dh_clean

binary: binary-indep binary-arch

binary-indep:

binary-arch: build
	dh_testdir awacs_defs.h
	dh_testroot
	dh_clean -k

	dh_installdirs
	[ -d debian/powerpc-utils/etc/init.d ] && rm -rf debian/powerpc-utils/etc

	dh_installdocs
	dh_installman autoboot.8 bootsched.8 clock.8 mousemode.8 nvsetenv.8 nvsetvol.8 trackpad.8 fblevel.8
	dh_installchangelogs

	#$(install_program) autoboot bootsched clock mousemode nvsetenv nvsetvol backlight trackpad fblevel fnset debian/tmp/sbin/.
	#$(install_program) lsprop debian/tmp/usr/bin/.

	dh_install autoboot bootsched clock mousemode nvsetenv nvsetvol backlight trackpad fblevel fnset sbin/.
	dh_install lsprop usr/bin/.

	dh_strip
	dh_compress
	dh_fixperms

	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: binary binary-indep binary-arch clean