File: rules

package info (click to toggle)
gpick 0.2.5+git20161221-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,748 kB
  • ctags: 3,744
  • sloc: cpp: 26,803; python: 871; ansic: 476; yacc: 252; lex: 197; xml: 63; makefile: 50; sh: 8
file content (27 lines) | stat: -rwxr-xr-x 606 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)
LDFLAGS += -Wl,--as-needed

debian_destdir :=$(CURDIR)/debian/gpick/usr

%:
	dh $@ 

override_dh_clean:
	dh_testdir
	dh_testroot
	scons -c -C src
	find -name "*.pyc" -delete
	rm -f build-stamp configure-stamp
	rm -rf .sconsign.dblite config.log .sconf_temp/ build/
	dh_clean

override_dh_install:
	scons install DESTDIR=$(debian_destdir)
	rm -f $(debian_destdir)/share/doc/copyright
	rm -f $(debian_destdir)/share/man/man1/gpick.1