Makefile.in 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # po/Makefile for libelf.
  2. # Copyright (C) 1995 - 2006 Michael Riepe
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 2 of the License, or (at your option) any later version.
  8. #
  9. # This library 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 library; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  17. # @(#) $Id: Makefile.in,v 1.18 2008/05/23 08:16:46 michael Exp $
  18. instroot =
  19. prefix = @prefix@
  20. exec_prefix = @exec_prefix@
  21. localedir = @localedir@
  22. CC = @CC@
  23. RM = rm -f
  24. MV = mv -f
  25. INSTALL = @INSTALL@
  26. INSTALL_DATA = @INSTALL_DATA@
  27. GENCAT = @GENCAT@
  28. GMSGFMT = @GMSGFMT@
  29. MSGFMT = @MSGFMT@
  30. XGETTEXT = @XGETTEXT@
  31. MSGMERGE = @MSGMERGE@
  32. CFLAGS = @CFLAGS@
  33. CPPFLAGS = @CPPFLAGS@
  34. DEFS = -DHAVE_CONFIG_H
  35. LDFLAGS = @LDFLAGS@
  36. LIBS = @LIBS@
  37. LIBINTL = @LIBINTL@
  38. # no user serviceable parts below
  39. PACKAGE = @PACKAGE@
  40. VERSION = @VERSION@
  41. SHELL = /bin/sh
  42. @SET_MAKE@
  43. srcdir = @srcdir@
  44. top_srcdir = @top_srcdir@
  45. VPATH = @srcdir@
  46. topdir = ..
  47. subdir = po
  48. .SUFFIXES:
  49. .SUFFIXES: .po .mo .gmo .msg .cat
  50. .po.mo:
  51. @$(RM) $@
  52. $(MSGFMT) -o $@ $<
  53. .po.gmo:
  54. file=$(srcdir)/`echo $*|sed 's,.*/,,'`.gmo; \
  55. $(RM) $$file && $(GMSGFMT) -o $$file $<
  56. .msg.cat:
  57. @$(RM) $@
  58. $(GENCAT) $@ $<
  59. POFILES = @POFILES@
  60. GMOFILES = @GMOFILES@
  61. MSGFILES = @MSGFILES@
  62. DISTFILES = \
  63. gmo2msg.c Makefile.in $(PACKAGE).pot stamp-po \
  64. $(POFILES) $(GMOFILES) $(MSGFILES)
  65. POTFILES = $(top_srcdir)/lib/errors.h
  66. CATALOGS = @CATALOGS@
  67. CATOBJEXT = @CATOBJEXT@
  68. INSTOBJEXT = @INSTOBJEXT@
  69. all: $(CATALOGS)
  70. check:
  71. install: all install-data
  72. install-data: $(top_srcdir)/mkinstalldirs
  73. catalogs="$(CATALOGS)"; for cat in $$catalogs; do \
  74. lang=`echo $$cat | sed 's,$(CATOBJEXT)$$,,'`; \
  75. dir=$(localedir)/$$lang/LC_MESSAGES; \
  76. $(SHELL) $(top_srcdir)/mkinstalldirs $(instroot)$$dir; \
  77. if test -r $$cat; then \
  78. $(INSTALL_DATA) $$cat $(instroot)$$dir/$(PACKAGE)$(INSTOBJEXT); \
  79. else \
  80. $(INSTALL_DATA) $(srcdir)/$$cat $(instroot)$$dir/$(PACKAGE)$(INSTOBJEXT); \
  81. fi; \
  82. done
  83. uninstall:
  84. catalogs="$(CATALOGS)"; for cat in $$catalogs; do \
  85. lang=`echo $$cat | sed 's,$(CATOBJEXT)$$,,'`; \
  86. $(RM) $(instroot)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
  87. done
  88. mostlyclean:
  89. $(RM) core core.* $(PACKAGE).po *.po.tmp
  90. clean: mostlyclean
  91. distclean: clean
  92. $(RM) gmo2msg *.mo *.cat
  93. $(RM) Makefile
  94. maintainer-clean: distclean
  95. $(RM) stamp-po
  96. $(PACKAGE).pot: $(POTFILES)
  97. $(XGETTEXT) -c -d$(PACKAGE) -k_ $(POTFILES)
  98. if cmp -s $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; then \
  99. $(RM) $(PACKAGE).po; \
  100. else \
  101. $(RM) $(srcdir)/$(PACKAGE).pot && \
  102. $(MV) $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; \
  103. fi
  104. update-po: stamp-po
  105. stamp-po: $(PACKAGE).pot
  106. pofiles="$(POFILES)"; cd $(srcdir) && for po in $$pofiles; do \
  107. $(RM) $$po.tmp; \
  108. if $(MSGMERGE) $$po $(PACKAGE).pot > $$po.tmp; then \
  109. $(RM) $$po; \
  110. $(MV) $$po.tmp $$po; \
  111. else \
  112. echo "update for $$po failed!"; \
  113. $(RM) $$po.tmp; \
  114. fi; \
  115. done
  116. $(RM) $@ && echo timestamp > $@
  117. # Create X/Open message catalog sources from .gmo files.
  118. .gmo.msg:
  119. $(MAKE) $(srcdir)/gmo2msg
  120. cd $(srcdir) && ./gmo2msg `echo $*|sed 's,.*/,,'`
  121. .SUFFIXES: .c
  122. .c:
  123. @$(RM) $@
  124. $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) \
  125. $(LDFLAGS) $*.c $(LIBS) $(LIBINTL) -o $@
  126. INCLUDES = -I$(topdir) -I. -I$(topdir)/lib -I$(srcdir) -I$(top_srcdir)/lib
  127. # maintainer only
  128. MAINT = @MAINT@
  129. distdir = $(PACKAGE)-$(VERSION)
  130. distsubdir = $(topdir)/$(distdir)/$(subdir)
  131. $(MAINT)dist: update-po $(DISTFILES)
  132. if test -d $(distsubdir); then true; else mkdir $(distsubdir); fi
  133. files="$(DISTFILES)"; for file in $$files; do \
  134. ln $(srcdir)/$$file $(distsubdir) >/dev/null 2>&1 || \
  135. cp -p $(srcdir)/$$file $(distsubdir) || exit 1; \
  136. done
  137. # For the justification of the following Makefile rules, see node
  138. # `Automatic Remaking' in GNU Autoconf documentation.
  139. $(MAINT)Makefile: Makefile.in $(topdir)/config.status
  140. cd $(topdir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  141. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  142. # Otherwise a system limit (for SysV at least) may be exceeded.
  143. .NOEXPORT: