1# Makefile.am for libgpg-error.
2# Copyright (C) 2003, 2006 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
20distributed_clfiles = gpg-error.asd \
21	gpg-error-package.lisp gpg-error.lisp
22
23generated_clfiles = gpg-error-codes.lisp
24
25clfiles = $(distributed_clfiles) $(generated_clfiles)
26
27# FIXME: Should be configurable.
28clfilesdir = $(datadir)/common-lisp/source/gpg-error
29dist_clfiles_DATA = $(distributed_clfiles)
30nodist_clfiles_DATA = $(generated_clfiles)
31
32EXTRA_DIST = README mkerrcodes.awk
33CLEANFILES = gpg-error-codes.lisp
34
35codes_file = $(top_srcdir)/src/err-codes.h.in
36errno_file = $(top_srcdir)/src/errnos.in
37
38gpg-error-codes.lisp: Makefile mkerrcodes.awk $(codes_file) $(errno_file)
39	echo '@errnos@' | cat $(codes_file) - $(errno_file) \
40	| $(AWK) -f $(srcdir)/mkerrcodes.awk >$@
41