File: rules

package info (click to toggle)
wm2 4-4.2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 260 kB
  • ctags: 423
  • sloc: cpp: 3,648; makefile: 57; sh: 41
file content (55 lines) | stat: -rwxr-xr-x 972 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
48
49
50
51
52
53
54
55
#!/usr/bin/make -f
#DH_VERBOSE=1
package=wm2

build:
	dh_testdir
	make CFLAGS="-O2 -g -Wall"
	touch build

clean:
	dh_testdir
	dh_testroot

	rm -f build
	make clean
	rm -f wm2
	rm -f `find . -name "*~"`
	dh_clean

binary-indep: build
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs
	install -d debian/tmp
	install wm2 ./debian/tmp/usr/X11R6/bin
	install ./debian/wm2-menu ./debian/tmp/usr/X11R6/bin
	dh_installmenu
	install ./debian/system.wm2rc-menu \
             ./debian/tmp/etc/X11/wm2/system.wm2rc-menu
	dh_installdocs
	dh_installmanpages
	dh_installchangelogs
	dh_installwm wm2
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

binary:		binary-indep binary-arch


.PHONY: binary binary-arch binary-indep clean