File: rules

package info (click to toggle)
nemiver 0.9.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,516 kB
  • ctags: 7,906
  • sloc: cpp: 56,699; sh: 4,732; makefile: 879; xml: 702; ansic: 43; sql: 39
file content (43 lines) | stat: -rwxr-xr-x 1,212 bytes parent folder | download | duplicates (3)
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
39
40
41
42
43
#!/usr/bin/make -f

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

%:
	dh $@

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g
DESTDIR = $(CURDIR)/debian/nemiver

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
	CFLAGS += -O2
endif

override_dh_auto_configure:
	./configure --host=$(DEB_HOST_GNU_TYPE) \
                   --build=$(DEB_BUILD_GNU_TYPE) \
		   --prefix=/usr \
		   --disable-scrollkeeper \
		   --enable-gsettings \
		   CFLAGS="$(CFLAGS)" 

override_dh_auto_install:
	dh_auto_install
	cp $(CURDIR)/debian/nemiver.xpm $(DESTDIR)/usr/share/pixmaps/
	# Remove unneeded .la files, see http://wiki.debian.org/ReleaseGoals/LAFileRemoval
	rm -rf  $(DESTDIR)/usr/lib/nemiver/modules/*.la \
		$(DESTDIR)/usr/lib/nemiver/*.la \
		$(DESTDIR)/usr/lib/nemiver/plugins/dbgperspective/*.la

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_shlibdeps:
	dh_shlibdeps -- --ignore-missing-info