File: rules

package info (click to toggle)
libgcrypt11 1.2.0-11.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,860 kB
  • ctags: 2
  • sloc: sh: 2,585; makefile: 37
file content (50 lines) | stat: -rwxr-xr-x 1,949 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /usr/bin/make -f
# Build the libgcrypt package for Debian.

DEB_TAR_SRCDIR = libgcrypt-1.2.0

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
ifneq (,$(wildcard *.tar.gz))
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/tarball.mk
endif

#DEB_CONFIGURE_EXTRA_FLAGS := --enable-maintainer-mode
DEB_DH_STRIP_ARGS = --dbg-package=libgcrypt11

clean::
	-test -r /usr/share/misc/config.sub && \
		cp -f /usr/share/misc/config.sub config.sub
	-test -r /usr/share/misc/config.guess && \
		cp -f /usr/share/misc/config.guess config.guess

	-if test -f ltmain.sh ; then touch ltmain.sh; else libtoolize -c -f --automake; mv -f l*.m4 m4/ ; fi
	-if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.7 -I m4 ; 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.7 --copy --add-missing; fi

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

common-configure-impl:: $(DEB_BUILDDIR)/doc/stamp-vti
$(DEB_BUILDDIR)/doc/stamp-vti:
	cd $(DEB_SRCDIR)/doc && $(MAKE) stamp-vti

build/libgcrypt11-doc:: $(DEB_BUILDDIR)/config.status
	cd $(DEB_SRCDIR)/doc && $(MAKE) gcrypt.ps
	cd $(DEB_SRCDIR)/doc && texi2html -split=chapter gcrypt.texi

common-post-build-arch:: $(DEB_BUILDDIR)/stamp-tests
$(DEB_BUILDDIR)/stamp-tests:
	cd $(DEB_SRCDIR)/tests && $(MAKE)
	$(DEB_BUILDDIR)/tests/register
	$(DEB_BUILDDIR)/tests/tsexp
	$(DEB_BUILDDIR)/tests/prime

binary-post-install/libgcrypt11-doc::
	install -o root -g root -m 755 $(DEB_SRCDIR)/doc/gcrypt.ps debian/libgcrypt11-doc/usr/share/doc/libgcrypt11-doc/
	install -d -o root -g root -m 755 debian/libgcrypt11-doc/usr/share/doc/libgcrypt11-doc/html/
	cp -a $(DEB_SRCDIR)/doc/gcrypt*.html debian/libgcrypt11-doc/usr/share/doc/libgcrypt11-doc/html/