1## Makefile for the toplevel directory of GNU gettext 2## Copyright (C) 1995-2020 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 <https://www.gnu.org/licenses/>. 16 17## Process this file with automake to produce Makefile.in. 18 19AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies 20ACLOCAL_AMFLAGS = -I m4 21 22SUBDIRS = gnulib-local gettext-runtime libtextstyle gettext-tools 23 24changelog_etc = \ 25 gettext-runtime/ChangeLog.0 \ 26 gettext-runtime/doc/ChangeLog.0 \ 27 gettext-runtime/intl-csharp/ChangeLog.0 \ 28 gettext-runtime/intl-java/ChangeLog.0 \ 29 gettext-runtime/libasprintf/ChangeLog.0 \ 30 gettext-runtime/m4/ChangeLog.0 \ 31 gettext-runtime/man/ChangeLog.0 \ 32 gettext-runtime/src/ChangeLog.0 \ 33 gettext-runtime/tests/ChangeLog.0 \ 34 gettext-tools/ChangeLog.0 \ 35 gettext-tools/doc/ChangeLog.0 \ 36 gettext-tools/doc/ChangeLog.1 \ 37 gettext-tools/examples/ChangeLog.0 \ 38 gettext-tools/gnulib-tests/ChangeLog.0 \ 39 gettext-tools/libgettextpo/ChangeLog.0 \ 40 gettext-tools/libgrep/ChangeLog.0 \ 41 gettext-tools/m4/ChangeLog.0 \ 42 gettext-tools/man/ChangeLog.0 \ 43 gettext-tools/man/ChangeLog.1 \ 44 gettext-tools/misc/ChangeLog.0 \ 45 gettext-tools/projects/ChangeLog.0 \ 46 gettext-tools/src/ChangeLog.0 \ 47 gettext-tools/src/ChangeLog.1 \ 48 gettext-tools/styles/ChangeLog.0 \ 49 gettext-tools/tests/ChangeLog.0 \ 50 gettext-tools/tests/ChangeLog.1 \ 51 gnulib-local/ChangeLog.0 52 53EXTRA_DIST = \ 54 $(changelog_etc) DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh \ 55 check-copyright-headers \ 56 build-aux/ac-help.sed build-aux/git-version-gen build-aux/texi2html \ 57 m4/fixautomake.m4 m4/woe32-dll.m4 \ 58 m4/libtool.m4 59 60# Additional dependencies for configure, due to the use of autoconf --trace. 61$(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac 62 63distcheck-hook: 64# Verify that some files are the same. 65 cmp -s $(srcdir)/gettext-runtime/po/Makefile.in.in $(srcdir)/gettext-tools/po/Makefile.in.in 66 cmp -s $(srcdir)/gettext-runtime/po/Rules-quot $(srcdir)/gettext-tools/po/Rules-quot 67 cmp -s $(srcdir)/gettext-runtime/po/boldquot.sed $(srcdir)/gettext-tools/po/boldquot.sed 68 cmp -s $(srcdir)/gettext-runtime/po/quot.sed $(srcdir)/gettext-tools/po/quot.sed 69 cmp -s $(srcdir)/gettext-runtime/po/en@quot.header $(srcdir)/gettext-tools/po/en@quot.header 70 cmp -s $(srcdir)/gettext-runtime/po/en@boldquot.header $(srcdir)/gettext-tools/po/en@boldquot.header 71 cmp -s $(srcdir)/gettext-runtime/po/insert-header.sin $(srcdir)/gettext-tools/po/insert-header.sin 72 cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sin $(srcdir)/gettext-tools/po/remove-potcdate.sin 73 cmp -s $(srcdir)/gettext-runtime/po/remove-potcdate.sin $(srcdir)/gettext-tools/examples/po/remove-potcdate.sin 74 cmp -s $(srcdir)/gettext-runtime/m4/fcntl-o.m4 $(srcdir)/gettext-tools/gnulib-m4/fcntl-o.m4 75 cmp -s $(srcdir)/gettext-runtime/m4/flexmember.m4 $(srcdir)/gettext-tools/gnulib-m4/flexmember.m4 76 cmp -s $(srcdir)/gettext-runtime/m4/gettext.m4 $(srcdir)/gettext-tools/gnulib-m4/gettext.m4 77 cmp -s $(srcdir)/gettext-runtime/m4/iconv.m4 $(srcdir)/gettext-tools/gnulib-m4/iconv.m4 78 cmp -s $(srcdir)/gettext-runtime/m4/intlmacosx.m4 $(srcdir)/gettext-tools/gnulib-m4/intlmacosx.m4 79 cmp -s $(srcdir)/gettext-runtime/m4/inttypes_h.m4 $(srcdir)/gettext-tools/gnulib-m4/inttypes_h.m4 80 cmp -s $(srcdir)/gettext-runtime/m4/nls.m4 $(srcdir)/gettext-tools/gnulib-m4/nls.m4 81 cmp -s $(srcdir)/gettext-runtime/m4/po.m4 $(srcdir)/gettext-tools/gnulib-m4/po.m4 82 cmp -s $(srcdir)/gettext-runtime/m4/progtest.m4 $(srcdir)/gettext-tools/gnulib-m4/progtest.m4 83 cmp -s $(srcdir)/gettext-runtime/m4/size_max.m4 $(srcdir)/gettext-tools/gnulib-m4/size_max.m4 84 cmp -s $(srcdir)/gettext-runtime/m4/stdint_h.m4 $(srcdir)/gettext-tools/gnulib-m4/stdint_h.m4 85 cmp -s $(srcdir)/gettext-runtime/m4/xsize.m4 $(srcdir)/gettext-tools/gnulib-m4/xsize.m4 86 cmp -s $(srcdir)/gettext-runtime/libasprintf/gnulib-m4/intmax_t.m4 $(srcdir)/gettext-tools/gnulib-m4/intmax_t.m4 87 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/arg-nonnull.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/arg-nonnull.h | md5sum`" 88 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/attribute.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/attribute.h | md5sum`" 89 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/filename.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/filename.h | md5sum`" 90 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/flexmember.h | md5sum`" = "`sed 1,19d $(srcdir)/gettext-tools/gnulib-lib/flexmember.h | md5sum`" 91 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/localcharset.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/localcharset.h | md5sum`" 92 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/localcharset.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/localcharset.c | md5sum`" 93 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/localename.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/localename.c | md5sum`" 94 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/localename-table.in.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/localename-table.h | md5sum`" 95 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/localename-table.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/localename-table.c | md5sum`" 96 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/glthread/lock.h | md5sum`" 97 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/lock.c | md5sum`" = "`sed -e 1,15d -e 's,glthread/,,g' $(srcdir)/gettext-tools/gnulib-lib/glthread/lock.c | md5sum`" 98 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/setlocale-lock.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/setlocale-lock.c | md5sum`" 99 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/setlocale_null.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/setlocale_null.h | md5sum`" 100 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/setlocale_null.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/setlocale_null.c | md5sum`" 101 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/threadlib.c | md5sum`" = "`sed -e 1,15d $(srcdir)/gettext-tools/gnulib-lib/glthread/threadlib.c | md5sum`" 102 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/verify.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/verify.h | md5sum`" 103 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-initguard.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-initguard.h | md5sum`" 104 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-mutex.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-mutex.h | md5sum`" 105 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-mutex.c | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-mutex.c | md5sum`" 106 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-once.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-once.h | md5sum`" 107 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-once.c | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-once.c | md5sum`" 108 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-recmutex.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-recmutex.h | md5sum`" 109 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-recmutex.c | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-recmutex.c | md5sum`" 110 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-rwlock.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-rwlock.h | md5sum`" 111 test "`sed 1,15d $(srcdir)/gettext-runtime/intl/windows-rwlock.c | md5sum`" = "`sed 1,15d $(srcdir)/gettext-tools/gnulib-lib/windows-rwlock.c | md5sum`" 112 cmp -s $(srcdir)/gettext-runtime/intl/printf-args.h $(srcdir)/gettext-runtime/libasprintf/printf-args.h 113 cmp -s $(srcdir)/gettext-runtime/intl/printf-args.c $(srcdir)/gettext-runtime/libasprintf/printf-args.c 114 cmp -s $(srcdir)/gettext-runtime/intl/printf-parse.h $(srcdir)/gettext-runtime/libasprintf/printf-parse.h 115 cmp -s $(srcdir)/gettext-runtime/intl/printf-parse.c $(srcdir)/gettext-runtime/libasprintf/printf-parse.c 116 cmp -s $(srcdir)/gettext-runtime/intl/verify.h $(srcdir)/gettext-runtime/libasprintf/verify.h 117 test "`sed 1,18d $(srcdir)/gettext-runtime/intl/relocatable.h | md5sum`" = "`sed 1,18d $(srcdir)/gettext-tools/gnulib-lib/relocatable.h | md5sum`" 118 test "`sed 1,18d $(srcdir)/gettext-runtime/intl/relocatable.c | md5sum`" = "`sed 1,18d $(srcdir)/gettext-tools/gnulib-lib/relocatable.c | md5sum`" 119 cmp -s $(srcdir)/gettext-runtime/intl/vasnprintf.h $(srcdir)/gettext-runtime/libasprintf/vasnprintf.h 120 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/vasnprintf.c | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/vasnprintf.c | md5sum`" 121 cmp -s $(srcdir)/gettext-runtime/intl/vasnprintf.c $(srcdir)/gettext-runtime/libasprintf/vasnprintf.c 122 cmp -s $(srcdir)/gettext-runtime/intl/xsize.h $(srcdir)/gettext-runtime/libasprintf/xsize.h 123 test "`sed 1,16d $(srcdir)/gettext-runtime/intl/xsize.h | md5sum`" = "`sed 1,16d $(srcdir)/gettext-tools/gnulib-lib/xsize.h | md5sum`" 124 cmp -s $(srcdir)/gettext-runtime/man/help2man $(srcdir)/gettext-tools/man/help2man 125 cmp -s $(srcdir)/gettext-runtime/man/x-to-1.in $(srcdir)/gettext-tools/man/x-to-1.in 126 cmp -s $(srcdir)/libtextstyle/m4/libtextstyle.m4 $(srcdir)/gettext-tools/gnulib-m4/libtextstyle.m4 127 cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.java $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.java 128 cmp -s $(srcdir)/gettext-tools/examples/hello-java-awt/m4/TestAWT.class $(srcdir)/gettext-tools/examples/hello-java-swing/m4/TestAWT.class 129 test "`sed 1,15d $(srcdir)/gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,15d $(srcdir)/gettext-runtime/libasprintf/alloca.in.h | md5sum`" 130# Verify that all files have appropriate copyright headers. 131 if test -d '$(distdir)'; then $(srcdir)/check-copyright-headers '$(distdir)'; fi 132 133# OS/2 port. 134 135EXTRA_DIST += os2/README.OS2 os2/Makefile os2/backward.def os2/configure.awk 136 137 138# Windows support. 139 140EXTRA_DIST += INSTALL.windows windows/windres-options windows/gettext.rc 141 142 143# Versioning based on Git release tags. 144 145EXTRA_DIST += $(top_srcdir)/.version 146BUILT_SOURCES = $(top_srcdir)/.version 147$(top_srcdir)/.version: 148 echo $(VERSION) > $@-t && mv $@-t $@ 149dist-hook: gen-ChangeLogs 150 echo $(VERSION) > $(distdir)/.tarball-version 151 152 153# Generate ChangeLog. 154 155gen_start_date = 2015-10-13 156.PHONY: gen-ChangeLogs 157gen-ChangeLogs: 158 $(AM_V_GEN)if test -d .git; then \ 159 log_fix="$(srcdir)/build-aux/git-log-fix"; \ 160 test -e "$$log_fix" \ 161 && amend_git_log="--amend=$$log_fix" \ 162 || amend_git_log=; \ 163 for d in . gettext-runtime/intl gettext-runtime/po \ 164 gettext-tools/po; do \ 165 test "$$d" = "." \ 166 && cldir="$(distdir)" \ 167 || cldir="$(distdir)/$$d"; \ 168 $(top_srcdir)/build-aux/gitlog-to-changelog \ 169 $$amend_git_log --since=$(gen_start_date) -- "$$d" \ 170 > "$$cldir/cl-t" && \ 171 { rm -f "$$cldir/ChangeLog" && \ 172 mv "$$cldir/cl-t" "$$cldir/ChangeLog"; }; \ 173 done; \ 174 fi 175 176 177# PO files update. 178 179maintainer-update-po-local: $(top_builddir)/config.status 180