File: rules

package info (click to toggle)
pydance-music 5
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,772 kB
  • ctags: 3
  • sloc: makefile: 35
file content (43 lines) | stat: -rwxr-xr-x 1,020 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_COMPAT=4

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

clean:
	dh_testdir
	dh_testroot
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	install -d $(CURDIR)/debian/pydance-music/usr/share/games/pydance/songs
	cp -R synrg forkbomb 6jan $(CURDIR)/debian/pydance-music/usr/share/games/pydance/songs
	install -D -m 644 pydance.png $(CURDIR)/debian/pydance-music/usr/share/games/pydance/cdtitles/pydance.png

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs 
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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