File: rules

package info (click to toggle)
freefem3d 1.0pre10-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 24,816 kB
  • ctags: 8,361
  • sloc: cpp: 57,201; sh: 8,788; yacc: 2,975; makefile: 1,148; ansic: 508; perl: 110
file content (29 lines) | stat: -rwxr-xr-x 744 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
25
26
27
28
29
#!/usr/bin/make -f

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_AC_AUX_DIR = $(DEB_SRCDIR)/m4
DEB_CONFIGURE_EXTRA_FLAGS := --enable-optimize --disable-gui

clean::
	rm -f aclocal.m4 config.guess config.h.in config.sub install-sh
	rm -f libtool ltconfig ltmain.sh missing mkinstalldirs stamp-h.in
	rm -f depcomp stamp-h1 configure
	rm -rf autom4te.cache
	find -name Makefile.in | xargs -r rm -f

# Unfortunately, cdbs's version of this doesn't work when aclocal.m4
# is missing.
post-patches:: debian/stamp-my-autotools
debian/stamp-my-autotools:
	libtoolize -c -f
	aclocal -I m4
	autoconf
	autoheader
	automake -a -c
	touch debian/stamp-my-autotools

clean::
	rm -f debian/stamp-my-autotools