File: rules

package info (click to toggle)
mm3d 1.3.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,268 kB
  • sloc: cpp: 97,649; sh: 4,043; perl: 2,464; makefile: 1,307; ansic: 380; xml: 76
file content (36 lines) | stat: -rwxr-xr-x 996 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
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export QT_SELECT=qt5

%:
	dh $@ --with autoreconf

QtDir=$(shell pkg-config --variable=libdir Qt5Core)
QtIncDir=$(shell pkg-config --variable=includedir Qt5Core)

override_dh_auto_configure:
	dh_auto_configure -- \
		CFLAGS="$(CFLAGS)" \
		CPPFLAGS="$(CPPFLAGS)" \
		CXXFLAGS="$(CXXFLAGS)" \
		LDFLAGS="$(LDFLAGS)" \
		--host=$(DEB_HOST_GNU_TYPE) \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--with-Qt-lib-dir=$(QtDir) \
		--with-Qt-include-dir=$(QtIncDir) \
		--enable-profile=no

override_dh_auto_clean:
#	dh_auto_clean
	rm -f src/*/*moc* src/qtui/*.h src/qtui/*.cc
	find -name Makefile.in -execdir rm '{}' +

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/mm3d install
#	cp desktop/mm3d.desktop debian/mm3d/usr/share/applications/
	rm -rf $(CURDIR)/debian/mm3d/usr/share/mm3d/plugins
	rm -rf $(CURDIR)/debian/mm3d/usr/share/mimelnk