File: rules

package info (click to toggle)
mtpaint 3.50.11-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,036 kB
  • sloc: ansic: 57,289; sh: 3,364; makefile: 83; perl: 61
file content (29 lines) | stat: -rwxr-xr-x 737 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
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export DEB_CFLAGS_MAINT_APPEND = -fcommon
DPKG_EXPORT_BUILDTOOLS = 1
include /usr/share/dpkg/buildtools.mk
%:
	dh $@

override_dh_auto_configure:
	./configure gtk3 cflags jpeg tiff intl man --prefix=/usr \
	--bindir=/usr/bin --mandir=/usr/share/man

override_dh_auto_build:
	>> _conf.txt
	dh_auto_build

override_dh_auto_clean:
	>> doc/mtpaint.1.gz
	>> po/cs.mo
	>> _conf.txt
	rm -f src/a.out
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f config.sub config.guess _conf.txt po/*.mo doc/mtpaint.1.gz
	rm -rf $(CURDIR)/src/graphics/

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/mtpaint/