File: rules

package info (click to toggle)
xsidplay 1.3-1
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 1,128 kB
  • ctags: 840
  • sloc: cpp: 5,356; sh: 1,704; makefile: 175
file content (70 lines) | stat: -rwxr-xr-x 2,021 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
#!/usr/bin/make -f
# debian/rules for xsidplay, (C) 1998 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 it
	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
# Compile the program
	$(MAKE) CFLAGS="-O3 -g -Wall" all
	touch build-stamp

clean:
	dh_testroot
	dh_testdir debian/rules src
	-rm -f build-stamp
	-$(MAKE) distclean
	dh_clean

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

# Build architecture-dependent files here.
binary-arch: build
	dh_testversion 0.88
	dh_testroot
	dh_testdir debian/rules src
	dh_clean -k
	dh_installdirs {DEBIAN,usr/{X11R6/{bin,include/X11/pixmap}}}
# Installation
# The original source package doesn't provide an install target yet,
# but if it would, something like the following should work pretty well
#	$(MAKE) prefix=`pwd`/debian/tmp/usr install
	install -m 755 src/xsidplay debian/tmp/usr/X11R6/bin/xsidplay
	install -m 644 debian/xsidplay.xpm debian/tmp/usr/X11R6/include/X11/pixmap
# Package organisation
	dh_installdocs PACKAGING hv_sids.faq STIL.faq AUTHORS README.FIRST src/stil.README
	dh_installexamples example-sidtunes/*
	dh_installmenu
# more currently unneeded dh_ scripts from the sample debian/rules file
##	dh_installinit
#	dh_installcron
#	dh_installmanpages
	dh_undocumented xsidplay.1x.gz
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
#	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

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