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