File: rules

package info (click to toggle)
grhino 0.16.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,680 kB
  • sloc: cpp: 10,637; sh: 3,120; xml: 1,099; makefile: 432; perl: 337; sed: 27
file content (22 lines) | stat: -rwxr-xr-x 545 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

TOSAVE := po/Makefile po/Makefile.in po/remove-potcdate.sed

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	for f in $(TOSAVE) ; \
		do [ -e $$f.debian-rules-orig ] || cp -rpv $$f $$f.debian-rules-orig ; \
	done
	dh_auto_configure -- \
		--bindir=/usr/games \
		--disable-gnome

override_dh_auto_clean:
	[ ! -e Makefile ] || $(MAKE) clean
	for f in $(TOSAVE) ; \
		do [ ! -e $$f.debian-rules-orig ] || ( rm -rf $$f && mv -v $$f.debian-rules-orig $$f ) ; \
	done