File: rules

package info (click to toggle)
wsoundserver 0.2.2-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 752 kB
  • ctags: 207
  • sloc: sh: 6,877; ansic: 2,002; makefile: 139
file content (78 lines) | stat: -rwxr-xr-x 2,283 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
#!/usr/bin/make -f
# GNU (c) 1999 Marcelo Magallon <mmagallo@debian.org>
# Based on sample debhelper debian/rules, GNU copyright 1997 by Joey Hess.
# Later changed by Josip Rodin.

#export DH_VERBOSE=1

wss          := wsoundserver
libname      := libwsound
wssdev       := $(libname)-dev

tmp          := $(shell pwd)/debian/tmp
dev_tmp      := $(shell pwd)/debian/$(wssdev)
prefix       := usr/X11R6
def_dir      := etc/GNUstep/Defaults

build: build-stamp
build-stamp:
	dh_testdir
	touch configure configure.in aclocal.m4 acinclude.m4 `find -name Makefile.in`
	./configure --prefix=/$(prefix)
	sed < libtool > libtool-2 \
          -e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
          -e '/^archive_cmds="/s/"$$/ \\$$deplibs"/' && \
          mv libtool-2 libtool && chmod 755 libtool
	$(MAKE)
	touch $@

clean:
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean build-stamp install-stamp debian/conffiles wslib/get-wsound-flags

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs $(def_dir)
	$(MAKE) install DESTDIR=$(tmp)
	tar -C $(tmp) --remove-files -cf - \
          $(prefix)/bin/get-wsound-flags \
          $(prefix)/man/man1/get-wsound-flags.1x \
          $(prefix)/include \
          $(prefix)/lib/$(libname).la \
          $(prefix)/lib/$(libname).so \
          $(prefix)/lib/$(libname).a | \
          tar -C $(dev_tmp) -xpf -
	install -m644 debian/WMSound $(tmp)/$(def_dir)
	touch install-stamp

binary-indep:
# We have no architecture-independent files here.

binary-arch: install-stamp
	dh_testversion
	dh_testdir
	dh_testroot
	find $(tmp)/etc ! -type d | sed -e "s:^$(tmp)::" > debian/conffiles
	dh_installdocs -p$(wss) AUTHORS NEWS
	dh_installdocs -p$(wssdev)
	rm -rf debian/$(wssdev)/usr/share/doc/$(wssdev)
	dh_installchangelogs -p$(wss) ChangeLog
	dh_installmenu -p$(wss)
	dh_link -p$(wssdev) usr/share/doc/$(wss) usr/share/doc/$(wssdev)
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_makeshlibs -p$(wss)
	LD_LIBRARY_PATH=$(tmp)/$(prefix)/lib dh_shlibdeps -p$(wss)
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

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