File: rules

package info (click to toggle)
mah-jong 1.17.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,232 kB
  • sloc: ansic: 19,774; perl: 394; makefile: 266; sh: 124
file content (31 lines) | stat: -rwxr-xr-x 765 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/buildtools.mk

%:
	dh  $@

execute_before_dh_auto_clean:
	cp version.h debian/version.h.sav
	cp Makefile debian/Makefile.sav
execute_after_dh_auto_clean:
	mv debian/version.h.sav version.h
	mv debian/Makefile.sav Makefile

execute_before_dh_auto_configure:
	cp Makefile debian/Makefile.sav
	rm -fv Makefile
	make -f Makefile.in Makefile

override_dh_auto_build:
	# debhelper overrides CC but upstream uses it convey the standard
	dh_auto_build -- CC='$(CC) -std=gnu99'

execute_after_dh_install:
	make install.man DESTDIR=$(CURDIR)/debian/mah-jong/ MANDIR=usr/share/man/man6
	mv debian/Makefile.sav Makefile