File: rules

package info (click to toggle)
openbox 3.3-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,848 kB
  • ctags: 2,256
  • sloc: ansic: 21,021; sh: 9,403; makefile: 413; python: 362; xml: 31; sed: 16
file content (79 lines) | stat: -rwxr-xr-x 1,749 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f

export DH_VERBOSE=

VERSION=$(shell awk '/^PACKAGE_VERSION/ { print $$2 }' "FS='" configure)

configure: configure-stamp
configure-stamp:
	dh_testdir

	./configure --prefix=/usr --sysconfdir=/etc
	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir

	$(MAKE)

	pod2man --section=1 --release=$(VERSION) --center \
		"Openbox documentation" debian/openbox.pod > openbox.1
	pod2man --section=1 --release=$(VERSION) --center \
		"Openbox documentation" debian/kdetrayproxy.pod > kdetrayproxy.1
	pod2man --section=1 --release=$(VERSION) --center \
		"Openbox documentation" debian/gnome-panel-control.pod > \
		gnome-panel-control.1
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	dh_clean

	-$(MAKE) distclean

	rm -rf tools/gnome-panel-control/.libs
	rm -rf tools/kdetrayproxy/.libs
	rm -rf openbox/.libs

	rm -f openbox.1
	rm -f kdetrayproxy.1
	rm -f gnome-panel-control.1

	rm -f build-stamp configure-stamp

install: build-stamp
	dh_testdir
	dh_testroot
	dh_clean

	$(MAKE) install DESTDIR=$(CURDIR)/debian/openbox/
	install -m0644 debian/menu.xml $(CURDIR)/debian/openbox/etc/xdg/openbox
	mkdir -p $(CURDIR)/debian/openbox/usr/share/xsessions
	install -m0664 debian/openbox.xsession $(CURDIR)/debian/openbox/usr/share/xsessions/openbox.desktop
	mkdir -p $(CURDIR)/debian/openbox/var/lib/openbox

binary-indep:

binary-arch: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs CHANGELOG
	dh_installman
	dh_installmenu
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs -V 'openbox (>= 3.3)'
	dh_shlibdeps
	dh_md5sums
	dh_gencontrol
	dh_installdeb
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install configure