File: rules

package info (click to toggle)
xmotd 1.17.3b-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: ansic: 3,683; makefile: 752; sh: 20
file content (20 lines) | stat: -rwxr-xr-x 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf xmkmf -- -a

override_dh_auto_build:
	$(MAKE) CDEBUGFLAGS="-g -Wall" CCOPTIONS="$$(dpkg-buildflags --get CFLAGS)" LOCAL_LDFLAGS="$$(dpkg-buildflags --get LDFLAGS)"
	ln -sf XMotd XMotd.ad

override_dh_auto_install:
	$(MAKE) install DESTDIR=debian/xmotd BINDIR=/usr/bin
	install -d debian/xmotd/usr/share/applications
	install -d debian/xmotd/usr/share/pixmaps
	install -m 0644 debian/xmotd.desktop debian/xmotd/usr/share/applications
	install -m 0644 debian/xmotd.xpm     debian/xmotd/usr/share/pixmaps