tdelibs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am.in 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # This file is part of the KDE libraries
  2. # Copyright (C) 1996-1997 Matthias Kalle Dalheimer (kalle@kde.org)
  3. # (C) 1997,1998 Stephan Kulow (coolo@kde.org)
  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. # This library is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. # Library General Public License for more details.
  12. # You should have received a copy of the GNU Library General Public License
  13. # along with this library; see the file COPYING.LIB. If not, write to
  14. # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. # Boston, MA 02110-1301, USA.
  16. COMPILE_FIRST = dcop libltdl tdefx tdecore tdeunittest tdeui tdesu kjs tdewallet tdeio kded kded_post
  17. COMPILE_BEFORE_doc = kdoctools
  18. COMPILE_AFTER_tdeparts = tdespell2 tdemdi tdeprint tdeinit kate interfaces tdecert tdehtml tderandr
  19. COMPILE_AFTER_tdeprint = kate tdehtml
  20. COMPILE_BEFORE_tdehtml = tdeutils
  21. COMPILE_BEFORE_tdeabc = kab tderesources
  22. COMPILE_BEFORE_kate = interfaces tdeutils
  23. COMPILE_BEFORE_tdemdi = tdeutils
  24. COMPILE_BEFORE_tdespell2 = tdeutils
  25. COMPILE_BEFORE_tdecmshell = tdeutils
  26. COMPILE_BEFORE_tdewidgets = tdeabc tdehtml
  27. COMPILE_BEFORE_interfaces = arts tdeabc
  28. $(top_srcdir)/acinclude.m4: $(top_srcdir)/libltdl/ltdl.m4
  29. AUTOMAKE_OPTIONS = foreign 1.6.1
  30. potdir = $(kde_includes)
  31. pot_DATA = tde.pot
  32. messages:
  33. cd tdeabc/scripts && perl ./makeaddressee
  34. find . -type d | grep -v '\.svn' | sed -e 's,$$,/,' > dirs
  35. mfs=`find . -name Makefile.am | xargs egrep -l '^messages:'` ;\
  36. for dir in $$mfs; do \
  37. if test "$$dir" != "./Makefile.am"; then \
  38. dir=`dirname $$dir` ;\
  39. egrep -v "^$$dir" dirs > dirs.new && mv dirs.new dirs ;\
  40. fi ;\
  41. done
  42. fgrep -v "/tests" dirs > dirs.new && mv dirs.new dirs ;\
  43. dirs=`cat dirs` ;\
  44. find $$dirs -maxdepth 1 -name "*.cpp" -print > files ;\
  45. find $$dirs -maxdepth 1 -name "*.cc" -print >> files ;\
  46. find $$dirs -maxdepth 1 -name "*.h" -print >> files ;\
  47. echo ./tdecore/tde-config.cpp.in >> files ;\
  48. $(EXTRACTRC) `find $$dirs -maxdepth 1 \( -name "*.rc" -o -name "*.ui" \) ` ./dnssd/kcm_tdednssd.kcfg > rc.cpp; \
  49. : > tde.pot ;\
  50. $(XGETTEXT) -ktranslate -x qt-messages.pot rc.cpp `cat files` && cat messages.po qt-messages.pot > $(podir)/tdelibs.pot
  51. $(XGETTEXT) common_texts.cpp -o tde.pot
  52. rm -f dirs
  53. EXTRA_DIST = admin tde.pot \
  54. COMPILING COMPILING.html COPYING.BSD DEBUG \
  55. KDE2PORTING.html NAMING common_texts.cpp tdelibs.lsm kdoc.rules \
  56. qt-messages.pot configure.in.in configure.in.mid configure.in.bot
  57. MAINTAINERCLEANFILES = configure.files subdirs
  58. dist-hook:
  59. cd $(top_distdir) && perl $(top_srcdir)/admin/am_edit -padmin
  60. # Rule for generating HTML documentation [you need kdoc installed]
  61. # Don't forget to run qt2kdoc first (qt2kdoc $TQTDIR/doc/html)
  62. # The tdelibs docu will end up in ./srcdoc/
  63. kdedoc:
  64. cd $(top_srcdir) && \
  65. makekdedoc -p'--skip-internal' --outputdir=$(top_builddir)/srcdoc
  66. qtmessages:
  67. if test x$(top_srcdir) = x; then top_srcdir=. ; else top_srcdir=$(top_srcdir); fi ;\
  68. cd $$top_srcdir/../qt-copy/src ;\
  69. sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\
  70. find . -name "*.cpp" | grep -v moc_ > list ;\
  71. for file in qfiledialog qcolordialog qprintdialog \
  72. qurloperator qftp qhttp qlocal qerrormessage; do \
  73. grep -v $$file list > list.new && mv list.new list ;\
  74. done ;\
  75. xgettext -C -ktr -kQT_TRANSLATE_NOOP `cat list` ;\
  76. cd ../../tdelibs ;\
  77. mv $$top_srcdir/../qt-copy/src/messages.po $$top_srcdir
  78. echo "remove the header from messages.po and move to qt-messages.pot"
  79. include admin/Doxyfile.am
  80. include admin/deps.am
  81. apidox-am-toplevel-yes: apidox-am-toplevel-tdelibs
  82. apidox-am-toplevel-tdelibs: $(top_builddir)/apidocs/qt/qt.tag
  83. $(top_builddir)/apidocs/qt/qt.tag:
  84. @echo "*** Creating a tag file for the Qt library:"; \
  85. $(mkinstalldirs) $(top_builddir)/apidocs/qt; \
  86. doxytag -t $(top_builddir)/apidocs/qt/qt.tag $(TQTDOCDIR)
  87. install-data-local: install-apidox-tdelibs
  88. ## install the tag file for the Qt documentation
  89. install-apidox-tdelibs:
  90. if test -f $(top_builddir)/apidocs/qt/qt.tag; then \
  91. $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/qt ;\
  92. echo $(INSTALL_DATA) $(top_builddir)/apidocs/qt/qt.tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/qt; \
  93. $(INSTALL_DATA) $(top_builddir)/apidocs/qt/qt.tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/qt; \
  94. fi
  95. .PHONY: install-apidox-tdelibs apidox-am-toplevel-tdelibs apidox-am-toplevel-yes qtmessages