Revert to old elisp automake idiom.
[libidn.git] / src / Makefile.am
blob527ef5b17e71e262d048cd31827e791c9b97b85d
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003 Simon Josefsson.
4 # This file is part of GNU Libidn.
6 # GNU Libidn 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
9 # the License, or (at your option) any later version.
11 # GNU Libidn 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 GNU Libidn; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 INCLUDES = -I$(top_srcdir)/lib -I../lib
22 bin_PROGRAMS = idn
24 # Change to 'dist_lisp_DATA = punycode.el idna.el' once we use automake > 1.7.
25 dist_lisp_LISP = punycode.el idna.el
26 ELCFILES=
27 elc-stamp:
29 BUILT_SOURCES = idn_cmd.c idn_cmd.h
30 idn_SOURCES = idn.c $(BUILT_SOURCES)
31 EXTRA_DIST = getopt.h
32 DISTCLEANFILES = $(BUILT_SOURCES)
33 idn_LDADD = ../lib/libidn.la $(LTLIBOBJS)
35 idn.c: $(BUILT_SOURCES)
37 $(BUILT_SOURCES): idn.ggo
38         gengetopt --input $^ --file-name idn_cmd || \
39                 test -f idn_cmd.h -a -f idn_cmd.c || \
40                 cp $(srcdir)/idn_cmd.h $(srcdir)/idn_cmd.h .
42 # Maintainer targets
44 indent:
45         indent $(SOURCES)