File: rules

package info (click to toggle)
mg 20090107-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 668 kB
  • ctags: 929
  • sloc: ansic: 12,853; sh: 184; makefile: 86; modula3: 4
file content (18 lines) | stat: -rwxr-xr-x 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
%:
	dh $@
# mg's ./configure script is not made by autoconf, and it does not
# accept arguments.  To make users realize this, ./configure exits if
# it is passed arguments -- which dh_auto_configure does.  Therefore,
# we need an exception to invoke it manually.
build:
	dh $@ --before configure
	./configure
	dh $@ --after configure
# Because --prefix=/usr and such are not set up by ./configure, we
# need to invoke "make install" manually, too.
binary: binary-arch binary-indep
binary-arch:
	dh $@ --before dh_auto_install
	make install DESTDIR=debian/mg prefix=/usr mandir=/usr/share/man
	dh $@ --after dh_auto_install