Tizen 2.1 base
[external/libgpg-error.git] / Makefile.am
1 # Makefile.am for libgpg-error.
2 # Copyright (C) 2003, 2006, 2007 g10 Code GmbH
3
4 # This file is part of libgpg-error.
5
6 # libgpg-error is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of the
9 # License, or (at your option) any later version.
10
11 # libgpg-error is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU Lesser General Public License for more details.
15
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20 ACLOCAL_AMFLAGS = -I m4
21 AUTOMAKE_OPTIONS = dist-bzip2
22
23 EXTRA_DIST = autogen.sh config.rpath libgpg-error.spec.in COPYING COPYING.LIB
24
25 if LANGUAGES_SOME
26 lang_subdirs = lang
27 else
28 lang_subdirs =
29 endif
30
31 SUBDIRS = m4 src tests po $(lang_subdirs)
32
33
34 dist-hook:
35         sed -e 's/@pkg_version@/$(VERSION)/g' \
36             $(top_srcdir)/libgpg-error.spec.in  > $(distdir)/libgpg-error.spec
37         @set -e; echo "$(VERSION)" > $(distdir)/VERSION
38
39 stowinstall: 
40         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/libgpg-error
41