File: rules

package info (click to toggle)
xsidplay 2.0.3-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,448 kB
  • ctags: 4,296
  • sloc: cpp: 14,967; sh: 9,859; makefile: 373
file content (69 lines) | stat: -rwxr-xr-x 1,780 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
#!/usr/bin/make -f
# debian/rules for xsidplay, (C) 1998-2000 by ujr.
# Made using the sample rules from debhelper [GNU copyrighted by Joey Hess].

## Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
## Uncomment this to see what should happen.
#export DH_NO_ACT=1

build: build-stamp
build-stamp:
# to run 'make depend' is no longer necessary, because ./configure already does
	dh_testdir debian/rules src
# well, ./configure isn't interactive here and doesn't take long, so it's
# carried out in order to assist building the package for people with other
# architectures and compiler environments
	./configure --prefix=/usr --with-qt-includes=/usr/include/qt3
	$(MAKE) CFLAGS="-O3 -g -Wall" all
	touch build-stamp

clean:
	dh_testroot
	dh_testdir debian/rules src
	-rm -f build-stamp
	-[ ! -f Makefile ] || $(MAKE) distclean
	rm -f config.log
	rm -f config.status
	dh_clean

maintainerclean: clean
	libtoolize --force --copy
	aclocal
	automake --add-missing --copy
	autoconf

# Build architecture-independent files here.
binary-indep: build
# We have nothing to do here.

# Build architecture-dependent files here.
binary-arch: build
	dh_testroot
	dh_testdir debian/rules src
	dh_clean -k
	dh_installdirs
	$(MAKE) prefix=$(CURDIR)/debian/xsidplay/usr/ install
	mv $(CURDIR)/debian/xsidplay/usr/share/xsidplay/mini \
		$(CURDIR)/debian/xsidplay/usr/share/xsidplay/pixmaps/
	mv $(CURDIR)/debian/xsidplay/usr/share/xsidplay/xsidplay.xpm \
		$(CURDIR)/debian/xsidplay/usr/share/xsidplay/pixmaps/
	dh_installdocs
	dh_installmenu
	dh_installchangelogs
	dh_strip
	dh_installman
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

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

# vim:tw=0