home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / intl / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  118 lines

  1. # Makefile for directory with message catalog handling in GNU NLS Utilities.
  2. # Copyright (C) 1995 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 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
  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, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22.  
  23. VPATH = @srcdir@
  24. srcdir = @srcdir@
  25. top_srcdir = @top_srcdir@
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29. transform = @program_transform_name@
  30. datadir = $(prefix)/@DATADIRNAME@
  31. localedir = $(datadir)/locale
  32. subdir = intl
  33.  
  34. AR = ar
  35. CC = @CC@
  36. RANLIB = @RANLIB@
  37.  
  38. DEFS = -DDEF_MSG_DOM_DIR=\"$(localedir)\" @DEFS@
  39. CFLAGS = @CFLAGS@
  40.  
  41. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  42.  
  43. SCRIPTS = linux-msg.sed po-to-tbl.sed xopen-msg.sed
  44. HEADERS = gettext.h gettextP.h hash-string.h libgettext.h
  45. SOURCES = bindtextdom.c dcgettext.c dgettext.c gettext.c \
  46. finddomain.c loadmsgcat.c textdomain.c cat-compat.c
  47. OBJECTS = @INTLOBJS@
  48. CATOBJS = cat-compat.o cat-id-tbl.o
  49. GETTOBJS= bindtextdom.o dcgettext.o dgettext.o gettext.o \
  50. finddomain.o loadmsgcat.o textdomain.o
  51. DISTFILES = Makefile.in combine-sh $(SCRIPTS) $(HEADERS) $(SOURCES) \
  52. stamp-cat-id cat-id-tbl.c
  53.  
  54. .SUFFIXES:
  55. .SUFFIXES: .c .o
  56. .c.o:
  57.     $(COMPILE) $<
  58.  
  59. INCLUDES = -I.. -I$(srcdir)/.. -I. -I$(srcdir)/../intl \
  60. -I../lib -I$(srcdir)/../lib
  61.  
  62. all: libintl.a
  63.  
  64.  
  65. libintl.a: $(OBJECTS)
  66.     rm -f libintl.a
  67.     $(AR) cru libintl.a $(OBJECTS)
  68.     $(RANLIB) libintl.a
  69.  
  70. cat-id-tbl.c: stamp-cat-id
  71. stamp-cat-id: po-to-tbl.sed $(top_srcdir)/po/$(PACKAGE).pot
  72.     sed -f $(srcdir)/po-to-tbl.sed $(top_srcdir)/po/$(PACKAGE).pot \
  73.       | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > table.tmp
  74.     if cmp -s table.tmp $(srcdir)/cat-id-tbl.c; then rm table.tmp; \
  75.     else mv table.tmp $(srcdir)/cat-id-tbl.c; fi
  76.     rm -f $(srcdir)/stamp-cat-id && echo timestamp > $(srcdir)/stamp-cat-id
  77.  
  78. install install-exec install-data: all
  79.  
  80. $(OBJECTS): ../config.h libgettext.h
  81. bindtextdom.o finddomain.o loadmsgcat.o: gettextP.h gettext.h
  82. cat-id-tbl.o: libgettext.h
  83. dcgettext.o: gettextP.h gettext.h hash-string.h
  84.  
  85. tags: TAGS
  86.  
  87. TAGS: $(HEADERS) $(SOURCES)
  88.     cd $(srcdir)/../intl && etags $(HEADERS) $(SOURCES) $(LIBHDRS) $(LIBSRCS) 
  89.  
  90. mostlyclean:
  91.     rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
  92.     rm -f *.a *.o core core.*
  93.     rm -f *.tmp
  94.  
  95. clean: mostlyclean
  96.  
  97. distclean: clean
  98.     rm -f Makefile
  99.  
  100. maintainer-clean: distclean
  101.     @echo "This command is intended for maintainers to use;"
  102.     @echo "it deletes files that may require special tools to rebuild."
  103.     rm -f TAGS
  104.  
  105. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  106. dist: $(DISTFILES)
  107.     for file in $(DISTFILES); do \
  108.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  109.         || cp -p $(srcdir)/$$file $(distdir); \
  110.     done
  111.  
  112. Makefile: Makefile.in ../config.status
  113.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  114.  
  115. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  116. # Otherwise a system limit (for SysV at least) may be exceeded.
  117. .NOEXPORT:
  118.