File: rules

package info (click to toggle)
floatbg 1.0-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: ansic: 1,026; makefile: 20
file content (21 lines) | stat: -rwxr-xr-x 593 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	cp -a Makefile Makefile~
	xmkmf -a
	dh_auto_build
	mv Makefile~ Makefile

override_dh_auto_clean:
	[ -f Makefile ] || xmkmf -a
	[ ! -f Makefile ] || $(MAKE) clean
# Note that we don't delete Makefile itself here as you would expect.
# This is because upstream shipped with Makefile, so we leave the one
# we generate.  Of course, it almost certainly won't be the same as
# the one upstream shipped...  Stupidity propagation I guess.
	if [ -f Makefile~ ] ; then mv Makefile~ Makefile ; fi