File: rules

package info (click to toggle)
clonalframe 1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 464 kB
  • sloc: cpp: 3,774; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 523 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
#!/usr/bin/make -f
# debian/rules for clonalframe
# Andreas Tille <tille@debian.org>
# GPL

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf bin build Makefile

override_dh_auto_build:
	qmake
	# did not found a better way to push hardening flags into Makefile
	sed -i -e "s:CFLAGS *= .*:& $(CFLAGS):" \
	       -e "s:CXXFLAGS *= .*:& $(CXXFLAGS):" \
	       -e "s:LFLAGS *= .*:& $(LDFLAGS):" Makefile
	$(MAKE)