File: rules

package info (click to toggle)
gnushogi 1.4.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,760 kB
  • sloc: ansic: 12,860; makefile: 385; sh: 174
file content (37 lines) | stat: -rwxr-xr-x 977 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

DEB_BUILD_ARCH		?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

ifeq ($(DEB_BUILD_ARCH),alpha)
	CFLAGS += -O0
endif

COMMON_INSTALL_OPTS= \
	BINDIR=\$${prefix}/games \
	LIBDIR=\$${prefix}/lib/games/gnushogi \
	MANDIR=\$${prefix}/share/man/man6 \
	INFODIR=\$${prefix}/share/info

%:
	dh ${@}

override_dh_auto_configure:
	dh_auto_configure -BBUILD-std  -- --with-curses
	dh_auto_configure -BBUILD-mini -- --with-curses --enable-minishogi

override_dh_auto_build:
	dh_auto_build -BBUILD-std $(COMMON_INSTALL_OPTS)
	dh_auto_build -BBUILD-mini $(COMMON_INSTALL_OPTS)
	dh_auto_build -BBUILD-std -- -C doc info html

override_dh_auto_install:
	dh_auto_install -BBUILD-std -- $(COMMON_INSTALL_OPTS) prefix=$(CURDIR)/debian/gnushogi/usr
	install -D -m755 BUILD-mini/gnushogi/gnuminishogi \
		debian/gnuminishogi/usr/games/gnuminishogi

override_dh_auto_clean:
	dh_auto_clean -BBUILD-std
	dh_auto_clean -BBUILD-mini
	rm -f gnushogi/pattern.inc