File: rules

package info (click to toggle)
lightspeed 1.2a.debian.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,248 kB
  • sloc: ansic: 18,942; makefile: 494; sh: 455; yacc: 288; cpp: 163; sed: 16
file content (32 lines) | stat: -rwxr-xr-x 823 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DEBIAN_PATH  := $(abspath $(dir $(firstword $(MAKEFILE_LIST))))

%:
	dh $@

override_dh_auto_configure:
	ln -sf /usr/share/misc/config.guess config/config.guess
	ln -sf /usr/share/misc/config.sub config/config.sub
	dh_auto_configure -- --with-gtk=2 --with-ftgl

override_dh_auto_clean:
	dh_testroot
	dh_auto_clean
	rm -f build-stamp
	rm -f po/es.gmo po/stamp-po
	rm -f config/config.guess config/config.sub

override_dh_auto_build:
	dh_auto_build -- LDFLAGS+=-Wl,--as-needed
	cd po ; $(MAKE) es.gmo

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/lightspeed