File: rules

package info (click to toggle)
freeamp 0.5-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,212 kB
  • ctags: 1,155
  • sloc: ansic: 10,165; cpp: 3,487; sh: 1,355; makefile: 148
file content (61 lines) | stat: -rwxr-xr-x 1,493 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
#!/usr/bin/make -f

# debian/rules file for freeamp Debian package
# written July 1998 by Ben Gertzfield <che@debian.org

build: build-stamp
build-stamp:
	dh_testdir
	./configure --prefix=/usr
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	-$(MAKE) distclean
	find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o \
	 -name '*.P' | xargs rm -rf
	rm -f config/config.h
	dh_clean

install: install-stamp
install-stamp: build
	dh_testdir
	dh_testroot
	dh_clean
	install -d debian/tmp/usr/bin
	$(MAKE) prefix=`pwd`/debian/tmp/usr install
	touch install-stamp

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

# Build architecture-dependent files here.
binary-arch: build-stamp install freeamp

freeamp: build
	dh_testdir -pfreeamp 
	dh_testroot -pfreeamp
	dh_installdirs -pfreeamp usr/bin
	dh_installdocs -pfreeamp
	dh_installchangelogs -pfreeamp
	dh_undocumented freeamp.1 decspeed.1
	dh_strip -pfreeamp
	dh_compress -pfreeamp
	dh_fixperms -pfreeamp
	dh_installdeb -pfreeamp
	dh_shlibdeps -pfreeamp
	dh_gencontrol -pfreeamp
	dh_md5sums -pfreeamp
	dh_builddeb -pfreeamp

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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