File: rules

package info (click to toggle)
lastfm 1.1.90-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,740 kB
  • ctags: 1,796
  • sloc: ansic: 31,089; cpp: 12,638; makefile: 58; sh: 38
file content (75 lines) | stat: -rwxr-xr-x 1,655 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
#!/usr/bin/make -f

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

build: build-stamp
build-stamp:
	dh_testdir

	/usr/share/qt4/bin/qmake \
		QTDIR=/usr/share/qt4 QMAKE_UIC=/usr/share/qt4/bin/uic \
		QMAKE_MOC=/usr/share/qt4/bin/moc
	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp 

	-$(MAKE) clean
	rm -f Makefile player
	rm -f src/ui_player.h src/ui_settingsdialog.h \
		src/ui_settingsdialog_general.h \
		src/ui_settingsdialog_connection.h \
		src/ui_settingsdialog_system.h src/ui_stationdialog.h \
	  	src/ui_tagdialog.h ui_*.h

	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

	cp player $(CURDIR)/debian/lastfm/usr/bin/lastfm
	cp debian/lastfm.mozilla $(CURDIR)/debian/lastfm/usr/bin/
	chmod 0755 $(CURDIR)/debian/lastfm/usr/bin/lastfm
	#mkdir -p $(CURDIR)/debian/lastfm/usr/share/lastfm/
	#cp -a data/ $(CURDIR)/debian/lastfm/usr/share/lastfm/
	cp -a debian/*.xpm $(CURDIR)/debian/lastfm/usr/share/pixmaps/
	mkdir -m 0755 -p $(CURDIR)/debian/lastfm/usr/share/applications/kde/
	cp -a debian/lastfm.desktop $(CURDIR)/debian/lastfm/usr/share/applications/kde/


binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installman debian/lastfm.1 debian/lastfm.mozilla.1
	dh_gconf
	dh_link
	dh_strip
	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 install configure