File: rules

package info (click to toggle)
id3tool 1.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 228 kB
  • ctags: 84
  • sloc: ansic: 909; sh: 331; makefile: 61
file content (56 lines) | stat: -rwxr-xr-x 1,169 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=id3tool
export DH_COMPAT=2
#export DH_VERBOSE=1
export DESTDIR=$(CURDIR)/debian/$(package)

build: build-stamp
build-stamp:
	@dh_testdir
	./configure --prefix=/usr
	$(MAKE) CFLAGS="-O2 -g -Wall"
	touch build-stamp

clean:
	@dh_testdir
	-@rm -f build-stamp install-stamp
	-@test -f Makefile && $(MAKE) distclean
	@dh_clean

install: install-stamp
install-stamp: build-stamp
	@dh_testdir
	@dh_testroot
	dh_installdirs
	@echo make install-strip prefix=$(DESTDIR)/usr 
	$(MAKE) install-strip prefix=$(DESTDIR)/usr

	# FSSTND-dir-in-usr usr/man/
	install -d -m755 $(DESTDIR)/usr/share
	mv $(DESTDIR)/usr/man/ $(DESTDIR)/usr/share/man

	touch install-stamp

binary-indep: 

binary-arch: build-stamp install-stamp
	@dh_testdir
	@dh_testroot

	dh_installdocs README
	dh_installmanpages
	dh_installchangelogs CHANGELOG
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb -a
	dh_shlibdeps -p$(package)
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb

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