File: rules

package info (click to toggle)
xcolorsel 1.1a-22
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 720 kB
  • sloc: ansic: 5,732; makefile: 78; sh: 9
file content (26 lines) | stat: -rwxr-xr-x 759 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	xmkmf -a -DHasSELinux=0

override_dh_auto_build:
	$(MAKE) XAWLIB=-lXaw3d CDEBUGFLAGS='$(CFLAGS) $(CPPFLAGS) -Wall' LOCAL_LDFLAGS='$(LDFLAGS)'

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) cleandir
	[ ! -f Makefile ] || $(MAKE) purge

override_dh_auto_install:
	$(MAKE) DESTDIR=debian/xcolorsel BINDIR='$(DESTDIR)/usr/bin' LIBDIR='$(DESTDIR)/usr/lib' install
	$(MAKE) DESTDIR=debian/xcolorsel MANPATH='$(DESTDIR)/usr/share/man' PROJECTMANSUFFIX='' install.man

override_dh_installchangelogs:
	dh_installchangelogs 01-CHANGELOG