Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / Makefile.am
1 ## Makefile for the toplevel directory of GNU gettext
2 ## Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc.
3 ##
4 ## This program is free software: you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 3 of the License, or
7 ## (at your option) any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 ## Process this file with automake to produce Makefile.in.
18
19 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
20 ACLOCAL = build-aux/fixaclocal @ACLOCAL@
21 ACLOCAL_AMFLAGS = -I m4
22
23 SUBDIRS = gnulib-local gettext-runtime gettext-tools
24
25 EXTRA_DIST = \
26   version.sh DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh \
27   build-aux/ac-help.sed build-aux/fixaclocal build-aux/moopp \
28   m4/fixautomake.m4 m4/woe32-dll.m4 \
29   m4/libtool.m4
30
31 # Additional dependencies for configure, due to the use of autoconf --trace.
32 $(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac 
33
34 # Verify that some files are the same.
35 distcheck-hook:
36         cmp -s gettext-runtime/po/Makefile.in.in gettext-tools/po/Makefile.in.in
37         cmp -s gettext-runtime/po/Rules-quot gettext-tools/po/Rules-quot
38         cmp -s gettext-runtime/po/boldquot.sed gettext-tools/po/boldquot.sed
39         cmp -s gettext-runtime/po/quot.sed gettext-tools/po/quot.sed
40         cmp -s gettext-runtime/po/en@quot.header gettext-tools/po/en@quot.header
41         cmp -s gettext-runtime/po/en@boldquot.header gettext-tools/po/en@boldquot.header
42         cmp -s gettext-runtime/po/insert-header.sin gettext-tools/po/insert-header.sin
43         cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/po/remove-potcdate.sin
44         cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/examples/po/remove-potcdate.sin
45         cmp -s gettext-runtime/m4/codeset.m4 gettext-tools/gnulib-m4/codeset.m4
46         cmp -s gettext-runtime/m4/fcntl-o.m4 gettext-tools/gnulib-m4/fcntl-o.m4
47         cmp -s gettext-runtime/m4/gettext.m4 gettext-tools/gnulib-m4/gettext.m4
48         cmp -s gettext-runtime/m4/glibc2.m4 gettext-tools/gnulib-m4/glibc2.m4
49         cmp -s gettext-runtime/m4/glibc21.m4 gettext-tools/gnulib-m4/glibc21.m4
50         cmp -s gettext-runtime/m4/iconv.m4 gettext-tools/gnulib-m4/iconv.m4
51         cmp -s gettext-runtime/m4/intdiv0.m4 gettext-tools/gnulib-m4/intdiv0.m4
52         cmp -s gettext-runtime/m4/intl.m4 gettext-tools/gnulib-m4/intl.m4
53         cmp -s gettext-runtime/m4/intldir.m4 gettext-tools/gnulib-m4/intldir.m4
54         cmp -s gettext-runtime/m4/intlmacosx.m4 gettext-tools/gnulib-m4/intlmacosx.m4
55         cmp -s gettext-runtime/m4/intmax.m4 gettext-tools/gnulib-m4/intmax.m4
56         cmp -s gettext-runtime/m4/inttypes-pri.m4 gettext-tools/gnulib-m4/inttypes-pri.m4
57         cmp -s gettext-runtime/m4/inttypes_h.m4 gettext-tools/gnulib-m4/inttypes_h.m4
58         cmp -s gettext-runtime/m4/lcmessage.m4 gettext-tools/gnulib-m4/lcmessage.m4
59         cmp -s gettext-runtime/m4/lock.m4 gettext-tools/gnulib-m4/lock.m4
60         cmp -s gettext-runtime/m4/longlong.m4 gettext-tools/gnulib-m4/longlong.m4
61         cmp -s gettext-runtime/m4/nls.m4 gettext-tools/gnulib-m4/nls.m4
62         cmp -s gettext-runtime/m4/po.m4 gettext-tools/gnulib-m4/po.m4
63         cmp -s gettext-runtime/m4/printf-posix.m4 gettext-tools/gnulib-m4/printf-posix.m4
64         cmp -s gettext-runtime/m4/progtest.m4 gettext-tools/gnulib-m4/progtest.m4
65         cmp -s gettext-runtime/m4/size_max.m4 gettext-tools/gnulib-m4/size_max.m4
66         cmp -s gettext-runtime/m4/stdint_h.m4 gettext-tools/gnulib-m4/stdint_h.m4
67         cmp -s gettext-runtime/m4/threadlib.m4 gettext-tools/gnulib-m4/threadlib.m4
68         cmp -s gettext-runtime/m4/uintmax_t.m4 gettext-tools/gnulib-m4/uintmax_t.m4
69         cmp -s gettext-runtime/m4/visibility.m4 gettext-tools/gnulib-m4/visibility.m4
70         cmp -s gettext-runtime/m4/wchar_t.m4 gettext-tools/gnulib-m4/wchar_t.m4
71         cmp -s gettext-runtime/m4/wint_t.m4 gettext-tools/gnulib-m4/wint_t.m4
72         cmp -s gettext-runtime/m4/xsize.m4 gettext-tools/gnulib-m4/xsize.m4
73         test "`sed 1,19d gettext-runtime/intl/config.charset | md5sum`" = "`sed 1,18d gettext-tools/gnulib-lib/config.charset | md5sum`"
74         test "`sed 1,18d gettext-runtime/intl/localcharset.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.h | md5sum`"
75         test "`sed 1,18d gettext-runtime/intl/localcharset.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.c | md5sum`"
76         test "`sed 1,17d gettext-runtime/intl/localename.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localename.c | md5sum`"
77         test "`sed 1,17d gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/glthread/lock.h | md5sum`"
78         test "`sed 1,17d gettext-runtime/intl/lock.c | md5sum`" = "`sed -e 1,16d -e 's,glthread/,,g' gettext-tools/gnulib-lib/glthread/lock.c | md5sum`"
79         cmp -s gettext-runtime/intl/printf-args.h gettext-runtime/libasprintf/printf-args.h
80         cmp -s gettext-runtime/intl/printf-args.c gettext-runtime/libasprintf/printf-args.c
81         cmp -s gettext-runtime/intl/printf-parse.h gettext-runtime/libasprintf/printf-parse.h
82         cmp -s gettext-runtime/intl/printf-parse.c gettext-runtime/libasprintf/printf-parse.c
83         test "`sed 1,18d gettext-runtime/intl/ref-add.sin | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/ref-add.sin | md5sum`"
84         test "`sed 1,18d gettext-runtime/intl/ref-del.sin | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/ref-del.sin | md5sum`"
85         test "`sed 1,18d gettext-runtime/intl/relocatable.h | md5sum`" = "`sed 1,18d gettext-tools/gnulib-lib/relocatable.h | md5sum`"
86         test "`sed 1,18d gettext-runtime/intl/relocatable.c | md5sum`" = "`sed 1,18d gettext-tools/gnulib-lib/relocatable.c | md5sum`"
87         cmp -s gettext-runtime/intl/vasnprintf.h gettext-runtime/libasprintf/vasnprintf.h
88         test "`sed 1,18d gettext-runtime/intl/vasnprintf.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/vasnprintf.c | md5sum`"
89         cmp -s gettext-runtime/intl/vasnprintf.c gettext-runtime/libasprintf/vasnprintf.c
90         cmp -s gettext-runtime/intl/xsize.h gettext-runtime/libasprintf/xsize.h
91         test "`sed 1,18d gettext-runtime/intl/xsize.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/xsize.h | md5sum`"
92         cmp -s gettext-runtime/man/help2man gettext-tools/man/help2man
93         cmp -s gettext-runtime/man/x-to-1.in gettext-tools/man/x-to-1.in
94         cmp -s gettext-runtime/libasprintf/texi2html gettext-tools/doc/texi2html
95         cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.java gettext-tools/examples/hello-java-swing/m4/TestAWT.java
96         cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.class gettext-tools/examples/hello-java-swing/m4/TestAWT.class
97         test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,15d gettext-runtime/libasprintf/alloca.in.h | md5sum`"
98
99 # DJGPP port.
100
101 EXTRA_DIST += djgpp/COPYING.DJ djgpp/Makefile.maint djgpp/README.DJ \
102               djgpp/README.in djgpp/README djgpp/config.bat djgpp/config.in \
103               djgpp/config.sed djgpp/config.site djgpp/djpwd.h \
104               djgpp/edtests.bat djgpp/fnchange.in djgpp/fnchange.lst \
105               djgpp/getpwnam.c djgpp/msginit.sed djgpp/tscript.sed \
106               djgpp/unsetenv.c
107
108
109 # OS/2 port.
110
111 EXTRA_DIST += os2/README.OS2 os2/Makefile os2/backward.def os2/configure.awk
112
113
114 # Woe32 support.
115
116 EXTRA_DIST += README.woe32 windows/windres-options windows/gettext.rc