File: rules

package info (click to toggle)
gnutls13 1.4.4-3%2Betch5
  • links: PTS
  • area: main
  • in suites: etch
  • size: 24,052 kB
  • ctags: 12,507
  • sloc: ansic: 94,474; xml: 17,016; sh: 9,652; perl: 628; makefile: 607; sed: 16
file content (65 lines) | stat: -rwxr-xr-x 2,708 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#! /usr/bin/make -f
# Build the gnutls package for Debian.

ifeq ($(DEB_BUILD_ARCH),hppa)
  CFLAGS += -fno-gcse
endif

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

DEB_CONFIGURE_EXTRA_FLAGS = --with-mcrypt=no --enable-ld-version-script
DEB_MAKE_CHECK_TARGET = check
DEB_DH_STRIP_ARGS = --dbg-package=libgnutls13
DEB_DH_MAKESHLIBS_ARGS_libgnutls13 := -V 'libgnutls13 (>=1.4.0-0)'
DEB_COMPRESS_EXCLUDE := gnutls.pdf

#build/libgnutls-doc::
#	$(DEB_MAKE_INVOKE) -C libextra/openpgp pgp-api.tex
#	$(DEB_MAKE_INVOKE) -C doc/tex gnutls.ps
#	$(DEB_MAKE_INVOKE) -C doc/tex
#
#install/libgnutls-doc::
#	$(DEB_MAKE_INVOKE) -C doc/tex $(DEB_MAKE_INSTALL_TARGET)
#
#binary-post-install/libgnutls-doc::
#	install -o root -g root -m 755 $(DEB_SRCDIR)/doc/tex/gnutls.ps debian/libgnutls-doc/usr/share/doc/libgnutls-doc/
#	# install -d -o root -g root -m 755 debian/libgnutls-doc/usr/share/doc/libgnutls-doc/html/
#	# cp -a $(DEB_SRCDIR)/doc/tex/gnutls/gnutls.html debian/libgnutls-doc/usr/share/doc/libgnutls-doc/html/
#	# cp -a $(DEB_SRCDIR)/doc/tex/gnutls/gnutls.css debian/libgnutls-doc/usr/share/doc/libgnutls-doc/html/
#	# cp -a $(DEB_SRCDIR)/doc/tex/gnutls/*.png debian/libgnutls-doc/usr/share/doc/libgnutls-doc/html/

post-patches::
	cd $(DEB_SRCDIR) && chmod +x doc/scripts/sort2.pl doc/scripts/gdoc

clean::
	mkdir -p m4

	if test -d gl ; then : ; else \
	mkdir -p gl; \
	gnulib-tool --import --source-base=gl --m4-base=gl/m4 \
		--dir=. --lib=libgnu --aux-dir=. --libtool --macro-prefix=gl \
		 gc gc-arcfour gc-arctwo gc-des gc-hmac-md5 gc-md2 gc-md4 gc-md5 gc-pbkdf2-sha1 gc-random gc-rijndael gc-sha1 getline getpass inet_ntop memmem memmove minmax readline snprintf socklen ; \
	fi

	if test ! -f ABOUT-NLS; then gettextize -f -c --no-changelog; \
		test ! -f Makefile.am~ || mv -f Makefile.am~ Makefile.am; \
		test ! -f configure.in~ || mv -f configure.in~ configure.in; \
		test -f libextra/gettext.h || cp /usr/share/gettext/gettext.h libextra/; \
	fi
	if test -f gtk-doc.make ; then touch gtk-doc.make; else gtkdocize --copy; fi
	if test -f ltmain.sh ; then touch ltmain.sh; else libtoolize -c -f --automake ; fi
	if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.9 -I m4 -I gl/m4 -I . ; fi
	if test -f config.h.in ; then touch config.h.in; else autoheader2.50; fi
	if test -f Makefile.in ; then find . -name Makefile.in -exec touch {} \; ;\
		else automake-1.9 --copy --add-missing; fi

	if test -f configure ; then touch configure; else autoconf2.50; fi
	-rm -rf autom4te.cache

	-rm -f tests/stamp-tests
	# stupid conflicts
	-rm -f libextra/lzoconf.h libextra/lzodefs.h

	chmod +x install-sh