File: rules

package info (click to toggle)
mah-jong 1.11-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 3,112 kB
  • ctags: 2,380
  • sloc: ansic: 27,831; perl: 393; makefile: 298; sh: 122
file content (70 lines) | stat: -rwxr-xr-x 1,753 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
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CCOPTIONS = "-O0 -Wall"
else
CCOPTIONS = "-O2 -Wall"
endif

new-upstream:
	cp version.h version.h.sav
	make distclean
	mv version.h.sav version.h
	make -f Makefile.in Makefile
	make EXTRA_INCLUDES="`pkg-config --cflags gtk+-2.0 | sed -e 's/-I/-isystem/g'`" depend
	rm Makefile.bak

build: build-arch build-indep
build-indep:
# We have nothing to do.
build-arch: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) CCOPTIONS=$(CCOPTIONS) CDEBUGFLAGS="-g" TILESETPATH=\""/usr/share/mah-jong"\"
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) clean
	dh_clean

install-arch: build-arch
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/mah-jong/ BINDIR=usr/games INSTPGMFLAGS=
	$(MAKE) install.man DESTDIR=$(CURDIR)/debian/mah-jong/ MANDIR=usr/share/man/man6
	for tileset in fallbacktiles tiles-v1 tiles-numbered tiles-small; do \
	  install -d $(CURDIR)/debian/mah-jong/usr/share/mah-jong/$${tileset}; \
	  install -m 644 $${tileset}/* $(CURDIR)/debian/mah-jong/usr/share/mah-jong/$${tileset}; \
	done


binary-indep:
# We have nothing to do.

binary-arch: build-arch install-arch
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installmenu
	dh_install debian/mah-jong.desktop usr/share/applications
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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