1# Makefile for directory with message catalog handling library of GNU gettext
2# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
3#
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of the GNU Library General Public License as published
6# by the Free Software Foundation; either version 2, or (at your option)
7# 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 GNU
12# Library General Public License for more details.
13#
14# You should have received a copy of the GNU Library General Public
15# License along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17# USA.
18
19PACKAGE = e2fsprogs
20VERSION = 0.14.1
21
22SHELL = /bin/sh
23
24srcdir = .
25top_srcdir = ..
26top_builddir = ..
27
28
29prefix = /usr
30exec_prefix = ${prefix}
31datarootdir = ${prefix}/share
32transform = s,x,x,
33libdir = ${exec_prefix}/lib
34includedir = ${prefix}/include
35datadir = ${datarootdir}
36localedir = $(datadir)/locale
37gettextsrcdir = $(datadir)/gettext/intl
38aliaspath = $(localedir)
39subdir = intl
40
41INSTALL = /usr/bin/install -c
42INSTALL_DATA = ${INSTALL} -m 644
43MKINSTALLDIRS = $(top_builddir)/config/mkinstalldirs
44mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
45
46l = 
47
48AR = ar
49CC = cc
50LIBTOOL = @LIBTOOL@
51RANLIB = ranlib
52YACC = bison -y -d
53YFLAGS = --name-prefix=__gettext
54
55DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
56-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
57-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
58-Dset_relocation_prefix=libintl_set_relocation_prefix \
59-Drelocate=libintl_relocate \
60-DDEPENDS_ON_LIBICONV=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARN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AVE_SYS_WAIT_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_NET_IF_H=1 -DHAVE_VPRINTF=1 -DHAVE_RECLEN_DIRENT=1 -DHAVE_TYPE_SSIZE_T=1 -DHAVE_LSEEK64_PROTOTYPE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DHAVE_INTTYPES_H=1 -DHAVE_INTPTR_T=1 -DHAVE_GETRUSAGE=1 -DHAVE_LLSEEK=1 -DHAVE_LSEEK64=1 -DHAVE_OPEN64=1 -DHAVE_FSTAT64=1 -DHAVE_FTRUNCATE64=1 -DHAVE_STRTOULL=1 -DHAVE_STRCASECMP=1 -DHAVE_SRANDOM=1 -DHAVE_JRAND48=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_STRPTIME=1 -DHAVE_STRDUP=1 -DHAVE_SYSCONF=1 -DHAVE_PATHCONF=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 -DHAVE_VALLOC=1 -DHAVE___SECURE_GETENV=1 -DHAVE_PRCTL=1 -DHAVE_MMAP=1 -DHAVE_UTIME=1 -DHAVE_SETRESUID=1 -DHAVE_SETRESGID=1 -DHAVE_DLOPEN=1 -DHAVE_EXT2_IOCTLS=1
61CPPFLAGS = 
62CFLAGS = -g -O2
63LDFLAGS = 
64LIBS = 
65
66COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
67
68HEADERS = \
69  gmo.h \
70  gettextP.h \
71  hash-string.h \
72  loadinfo.h \
73  plural-exp.h \
74  eval-plural.h \
75  localcharset.h \
76  relocatable.h \
77  xsize.h \
78  printf-args.h printf-args.c \
79  printf-parse.h wprintf-parse.h printf-parse.c \
80  vasnprintf.h vasnwprintf.h vasnprintf.c \
81  os2compat.h \
82  libgnuintl.h.in
83SOURCES = \
84  bindtextdom.c \
85  dcgettext.c \
86  dgettext.c \
87  gettext.c \
88  finddomain.c \
89  loadmsgcat.c \
90  localealias.c \
91  textdomain.c \
92  l10nflist.c \
93  explodename.c \
94  dcigettext.c \
95  dcngettext.c \
96  dngettext.c \
97  ngettext.c \
98  plural.y \
99  plural-exp.c \
100  localcharset.c \
101  relocatable.c \
102  localename.c \
103  log.c \
104  printf.c \
105  osdep.c \
106  os2compat.c \
107  intl-compat.c
108OBJECTS = \
109  bindtextdom.$lo \
110  dcgettext.$lo \
111  dgettext.$lo \
112  gettext.$lo \
113  finddomain.$lo \
114  loadmsgcat.$lo \
115  localealias.$lo \
116  textdomain.$lo \
117  l10nflist.$lo \
118  explodename.$lo \
119  dcigettext.$lo \
120  dcngettext.$lo \
121  dngettext.$lo \
122  ngettext.$lo \
123  plural.$lo \
124  plural-exp.$lo \
125  localcharset.$lo \
126  relocatable.$lo \
127  localename.$lo \
128  log.$lo \
129  printf.$lo \
130  osdep.$lo \
131  intl-compat.$lo
132DISTFILES.common = Makefile.in \
133config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
134DISTFILES.generated = plural.c
135DISTFILES.normal = VERSION
136DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
137libgnuintl.h_vms Makefile.vms \
138libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
139DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
140COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
141
142all: all-no
143all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
144all-no: all-no-no
145all-no-yes: libgnuintl.$la
146all-no-no:
147
148libintl.a libgnuintl.a: $(OBJECTS)
149	@rm -f $@
150	@echo "	AR $@"
151	@$(AR) cru $@ $(OBJECTS)
152	@echo "	RANLIB $@"
153	@$(RANLIB) $@
154
155libintl.la libgnuintl.la: $(OBJECTS)
156	$(LIBTOOL) --mode=link \
157	  $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
158	  $(OBJECTS)  $(LIBS) -lc \
159	  -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
160	  -rpath $(libdir) \
161	  -no-undefined
162
163# Libtool's library version information for libintl.
164# Before making a gettext release, the gettext maintainer must change this
165# according to the libtool documentation, section "Library interface versions".
166# Maintainers of other packages that include the intl directory must *not*
167# change these values.
168LTV_CURRENT=7
169LTV_REVISION=0
170LTV_AGE=4
171
172.SUFFIXES:
173.SUFFIXES: .c .y .o .lo .sin .sed
174
175.c.o:
176	@echo "	CC $<"
177	@$(COMPILE) $<
178
179.y.c:
180	$(YACC) $(YFLAGS) --output $@ $<
181	rm -f $*.h
182
183bindtextdom.lo: $(srcdir)/bindtextdom.c
184	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
185dcgettext.lo: $(srcdir)/dcgettext.c
186	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
187dgettext.lo: $(srcdir)/dgettext.c
188	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
189gettext.lo: $(srcdir)/gettext.c
190	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
191finddomain.lo: $(srcdir)/finddomain.c
192	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
193loadmsgcat.lo: $(srcdir)/loadmsgcat.c
194	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
195localealias.lo: $(srcdir)/localealias.c
196	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
197textdomain.lo: $(srcdir)/textdomain.c
198	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
199l10nflist.lo: $(srcdir)/l10nflist.c
200	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
201explodename.lo: $(srcdir)/explodename.c
202	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
203dcigettext.lo: $(srcdir)/dcigettext.c
204	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
205dcngettext.lo: $(srcdir)/dcngettext.c
206	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
207dngettext.lo: $(srcdir)/dngettext.c
208	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
209ngettext.lo: $(srcdir)/ngettext.c
210	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
211plural.lo: $(srcdir)/plural.c
212	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
213plural-exp.lo: $(srcdir)/plural-exp.c
214	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
215localcharset.lo: $(srcdir)/localcharset.c
216	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
217relocatable.lo: $(srcdir)/relocatable.c
218	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
219localename.lo: $(srcdir)/localename.c
220	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
221log.lo: $(srcdir)/log.c
222	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
223printf.lo: $(srcdir)/printf.c
224	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
225osdep.lo: $(srcdir)/osdep.c
226	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
227intl-compat.lo: $(srcdir)/intl-compat.c
228	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
229
230ref-add.sed: $(srcdir)/ref-add.sin
231	@echo "	SED ref-add.sed"
232	@sed -e '/^#/d' -e 's/@''PACKAGE''@/e2fsprogs/g' $(srcdir)/ref-add.sin > t-ref-add.sed
233	@mv t-ref-add.sed ref-add.sed
234ref-del.sed: $(srcdir)/ref-del.sin
235	@echo "	SED ref-del.sed"
236	@sed -e '/^#/d' -e 's/@''PACKAGE''@/e2fsprogs/g' $(srcdir)/ref-del.sin > t-ref-del.sed
237	@mv t-ref-del.sed ref-del.sed
238
239INCLUDES = -I. -I$(srcdir) -I..
240
241libgnuintl.h: $(srcdir)/libgnuintl.h.in
242	@echo "	SED libgnuintl.h "
243	@sed -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
244	    -e 's,@''HAVE_ASPRINTF''@,1,g' \
245	    -e 's,@''HAVE_SNPRINTF''@,1,g' \
246	    -e 's,@''HAVE_WPRINTF''@,0,g' \
247	  < $(srcdir)/libgnuintl.h.in > libgnuintl.h 
248
249libintl.h: libgnuintl.h
250	@echo "	CP libintl.h"
251	@cp libgnuintl.h libintl.h
252
253charset.alias: $(srcdir)/config.charset
254	@echo "	CONFIG.CHARSET $@"
255	@$(SHELL) $(srcdir)/config.charset 'i686-pc-linux-gnu' > t-$@
256	@mv t-$@ $@
257
258check: all
259
260# We must not install the libintl.h/libintl.a files if we are on a
261# system which has the GNU gettext() function in its C library or in a
262# separate library.
263# If you want to use the one which comes with this version of the
264# package, you have to use `configure --with-included-gettext'.
265install: install-exec install-data
266install-exec: all
267	@if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
268	   && test 'no' = yes; then \
269	  $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
270	  $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
271	  $(LIBTOOL) --mode=install \
272	    $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
273	  if test "@RELOCATABLE@" = yes; then \
274	    dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
275	    if test -n "$$dependencies"; then \
276	      rm -f $(DESTDIR)$(libdir)/libintl.la; \
277	    fi; \
278	  fi; \
279	else \
280	  : ; \
281	fi
282	@if test "$(PACKAGE)" = "gettext-tools" \
283	   && test 'no' = no; then \
284	  $(mkinstalldirs) $(DESTDIR)$(libdir); \
285	  $(LIBTOOL) --mode=install \
286	    $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
287	  rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
288	  $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
289	  $(LIBTOOL) --mode=uninstall \
290	    rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
291	else \
292	  : ; \
293	fi
294	if test 'no' = yes; then \
295	  test yes != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
296	  temp=$(DESTDIR)$(libdir)/t-charset.alias; \
297	  dest=$(DESTDIR)$(libdir)/charset.alias; \
298	  if test -f $(DESTDIR)$(libdir)/charset.alias; then \
299	    orig=$(DESTDIR)$(libdir)/charset.alias; \
300	    sed -f ref-add.sed $$orig > $$temp; \
301	    $(INSTALL_DATA) $$temp $$dest; \
302	    rm -f $$temp; \
303	  else \
304	    if test yes = no; then \
305	      orig=charset.alias; \
306	      sed -f ref-add.sed $$orig > $$temp; \
307	      $(INSTALL_DATA) $$temp $$dest; \
308	      rm -f $$temp; \
309	    fi; \
310	  fi; \
311	  $(mkinstalldirs) $(DESTDIR)$(localedir); \
312	  test -f $(DESTDIR)$(localedir)/locale.alias \
313	    && orig=$(DESTDIR)$(localedir)/locale.alias \
314	    || orig=$(srcdir)/locale.alias; \
315	  temp=$(DESTDIR)$(localedir)/t-locale.alias; \
316	  dest=$(DESTDIR)$(localedir)/locale.alias; \
317	  sed -f ref-add.sed $$orig > $$temp; \
318	  $(INSTALL_DATA) $$temp $$dest; \
319	  rm -f $$temp; \
320	else \
321	  : ; \
322	fi
323install-data: all
324	@if test "$(PACKAGE)" = "gettext-tools"; then \
325	  $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
326	  $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
327	  $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
328	  dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
329	  for file in $$dists; do \
330	    $(INSTALL_DATA) $(srcdir)/$$file \
331			    $(DESTDIR)$(gettextsrcdir)/$$file; \
332	  done; \
333	  chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
334	  dists="$(DISTFILES.generated)"; \
335	  for file in $$dists; do \
336	    if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
337	    $(INSTALL_DATA) $$dir/$$file \
338			    $(DESTDIR)$(gettextsrcdir)/$$file; \
339	  done; \
340	  dists="$(DISTFILES.obsolete)"; \
341	  for file in $$dists; do \
342	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
343	  done; \
344	else \
345	  : ; \
346	fi
347
348install-strip: install
349
350installdirs:
351	if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
352	   && test 'no' = yes; then \
353	  $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
354	else \
355	  : ; \
356	fi
357	if test "$(PACKAGE)" = "gettext-tools" \
358	   && test 'no' = no; then \
359	  $(mkinstalldirs) $(DESTDIR)$(libdir); \
360	else \
361	  : ; \
362	fi
363	if test 'no' = yes; then \
364	  test yes != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
365	  $(mkinstalldirs) $(DESTDIR)$(localedir); \
366	else \
367	  : ; \
368	fi
369	if test "$(PACKAGE)" = "gettext-tools"; then \
370	  $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
371	else \
372	  : ; \
373	fi
374
375# Define this as empty until I found a useful application.
376installcheck:
377
378install-shlibs:
379
380uninstall-shlibs:
381
382install-shlibs-strip:
383
384uninstall:
385	if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
386	   && test 'no' = yes; then \
387	  rm -f $(DESTDIR)$(includedir)/libintl.h; \
388	  $(LIBTOOL) --mode=uninstall \
389	    rm -f $(DESTDIR)$(libdir)/libintl.$la; \
390	else \
391	  : ; \
392	fi
393	if test "$(PACKAGE)" = "gettext-tools" \
394	   && test 'no' = no; then \
395	  rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
396	else \
397	  : ; \
398	fi
399	if test 'no' = yes; then \
400	  if test -f $(DESTDIR)$(libdir)/charset.alias; then \
401	    temp=$(DESTDIR)$(libdir)/t-charset.alias; \
402	    dest=$(DESTDIR)$(libdir)/charset.alias; \
403	    sed -f ref-del.sed $$dest > $$temp; \
404	    if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
405	      rm -f $$dest; \
406	    else \
407	      $(INSTALL_DATA) $$temp $$dest; \
408	    fi; \
409	    rm -f $$temp; \
410	  fi; \
411	  if test -f $(DESTDIR)$(localedir)/locale.alias; then \
412	    temp=$(DESTDIR)$(localedir)/t-locale.alias; \
413	    dest=$(DESTDIR)$(localedir)/locale.alias; \
414	    sed -f ref-del.sed $$dest > $$temp; \
415	    if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
416	      rm -f $$dest; \
417	    else \
418	      $(INSTALL_DATA) $$temp $$dest; \
419	    fi; \
420	    rm -f $$temp; \
421	  fi; \
422	else \
423	  : ; \
424	fi
425	if test "$(PACKAGE)" = "gettext-tools"; then \
426	  for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
427	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
428	  done; \
429	else \
430	  : ; \
431	fi
432
433info dvi ps pdf html:
434
435$(OBJECTS): libgnuintl.h
436bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
437dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
438explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
439dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
440dcigettext.$lo: $(srcdir)/eval-plural.h
441localcharset.$lo: $(srcdir)/localcharset.h
442localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
443printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
444
445tags: TAGS
446
447TAGS: $(HEADERS) $(SOURCES)
448	here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
449
450ctags: CTAGS
451
452CTAGS: $(HEADERS) $(SOURCES)
453	here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
454
455id: ID
456
457ID: $(HEADERS) $(SOURCES)
458	here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
459
460
461mostlyclean:
462	rm -f *.a *.la *.o *.obj *.lo core core.*
463	rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
464	rm -f -r .libs _libs
465
466clean: mostlyclean
467
468distclean: clean
469	rm -f Makefile ID TAGS
470	if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
471	  rm -f ChangeLog.inst $(DISTFILES.normal); \
472	else \
473	  : ; \
474	fi
475
476maintainer-clean: distclean
477	@echo "This command is intended for maintainers to use;"
478	@echo "it deletes files that may require special tools to rebuild."
479
480
481# GNU gettext needs not contain the file `VERSION' but contains some
482# other files which should not be distributed in other packages.
483distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
484dist distdir: Makefile
485	if test "$(PACKAGE)" = "gettext-tools"; then \
486	  : ; \
487	else \
488	  if test "$(PACKAGE)" = "gettext-runtime"; then \
489	    additional="$(DISTFILES.gettext)"; \
490	  else \
491	    additional="$(DISTFILES.normal)"; \
492	  fi; \
493	  $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
494	  for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
495	    if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
496	    cp -p $$dir/$$file $(distdir); \
497	  done; \
498	fi
499
500Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
501#	cd $(top_builddir) && $(SHELL) ./config.status
502# This would be more efficient, but doesn't work any more with autoconf-2.57,
503# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
504	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
505
506# Tell versions [3.59,3.63) of GNU make not to export all variables.
507# Otherwise a system limit (for SysV at least) may be exceeded.
508.NOEXPORT:
509