File: rules

package info (click to toggle)
gwyddion 2.47-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 38,180 kB
  • ctags: 37,276
  • sloc: ansic: 317,531; sh: 5,122; xml: 3,583; python: 3,067; makefile: 2,694; cpp: 2,550; pascal: 418; perl: 154; ruby: 130; sed: 17
file content (38 lines) | stat: -rwxr-xr-x 1,373 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
33
34
35
36
37
38
#!/usr/bin/make -f
  
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk

#DEB_CONFIGURE_EXTRA_FLAGS := --libexecdir=\$${libdir} CFLAGS= "-Wall -g" --disable-rpath
DEB_CONFIGURE_EXTRA_FLAGS := --libexecdir=\$${libdir} --disable-rpath
#DEB_BUILDDIR := $(DEB_SRCDIR)/debian/tmp
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
DEB_DH_INSTALL_SOURCEDIR := $(DEB_SRCDIR)/debian/tmp
DEB_INSTALL_CHANGELOGS_ALL :=
DEB_INSTALL_DOCS_gwyddion := modules/pygwy/README.pygwy
DEB_INSTALL_DOCS_gwyddion-plugins := plugins/process/README
version=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //')
DEB_DH_MAKESHLIBS_ARGS_gwyddion := -n -Xgwyddion
DEB_DH_MAKESHLIBS_ARGS_libgwyddion2-0 := -V'libgwyddion2-0 (>= ${version})'

clean::
	dh_clean
	rm -rf data/gwyddion.desktop

install/gwyddion::
	find debian/tmp/usr/lib/gwyddion/modules -name "*.la" -exec rm {} \;
	rm debian/tmp/usr/lib/gwyddion/python/Gwyddion/*.py?
	chrpath -d debian/tmp/usr/bin/gwyddion*

install/libgwyddion2-0::
	rm debian/tmp/usr/lib/python2.7/dist-packages/gwy.la

get-orig-source::
	if [ -x /usr/bin/uscan ]; then \
		/usr/bin/uscan --force-download --verbose; \
	else \
		echo "Could not find /usr/bin/uscan to download source."; \
		echo " Please install the devscripts package."; \
	fi