[go: up one dir, main page]

File: rules

package info (click to toggle)
sopwith 1.8.4-15
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,996 kB
  • sloc: ansic: 9,905; sh: 2,770; makefile: 80
file content (26 lines) | stat: -rwxr-xr-x 820 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
#!/usr/bin/make -f

# Set to enable verbose output from debhelper
#export DH_VERBOSE=1

# Enable all hardening-related compiler options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Build sopwith with -O0 optimization to prevent segfaults.
# This results in multiple -O flags, but ours will be last and takes precedence
# See http://bugs.debian.org/742295
export DEB_CFLAGS_MAINT_APPEND = -O0

install_dir = $(CURDIR)/debian/tmp

%:
	dh $@ --without autoreconf

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(install_dir)

override_dh_auto_clean:
	touch config.status                          # so 'make clean' is happy
	dh_auto_clean
	rm -f config.log config.status               # remove so quilt patches can be reverted
	rm -f src/gtk/Makefile src/psion/Makefile    # remove so repeat builds work properly