File: rules

package info (click to toggle)
xcolorsel 1.1a-20
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 712 kB
  • ctags: 677
  • sloc: ansic: 5,732; makefile: 76; sh: 9
file content (24 lines) | stat: -rwxr-xr-x 694 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	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