File: rules

package info (click to toggle)
wmsun 1.03%2B1-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 236 kB
  • ctags: 123
  • sloc: ansic: 548; makefile: 59; sh: 16
file content (47 lines) | stat: -rwxr-xr-x 784 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
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

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

clean:
	dh_testdir
	[ ! -f wmSun/Makefile ] || $(MAKE) -C wmSun clean
	dh_clean
	rm -f build-stamp

build:  build-stamp
build-stamp:
	dh_testdir
	$(MAKE) -C wmSun
	touch build-stamp

binary: binary-arch

binary-indep:

binary-arch: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_install
	dh_installdocs TODO changelog
	dh_installman wmSun/wmSun.1
	dh_installchangelogs
	dh_installmenu
	dh_link usr/bin/wmSun usr/bin/wmsun
	dh_link usr/share/man/man1/wmSun.1.gz usr/share/man/man1/wmsun.1.gz
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: clean binary-indep binary-arch binary