PageRenderTime 26ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/librep-0.92.2/Makefile.in

#
Autoconf | 141 lines | 98 code | 18 blank | 25 comment | 21 complexity | 45a32440638eb808095e4bde07b485e5 MD5 | raw file
Possible License(s): GPL-2.0
  1. # Makefile.in for Jade version 4
  2. # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk>
  3. # $Id: Makefile.in,v 1.33 2003/09/04 05:57:43 jsh Exp $
  4. #
  5. # This file is part of Jade.
  6. #
  7. # Jade is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # Jade is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with Jade; see the file COPYING. If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ETAGS:= etags
  21. top_builddir=.
  22. ALL_SUBDIRS = intl src lisp man
  23. INSTALL_SUBDIRS = src lisp man
  24. all : build.h doc-strings
  25. for dir in $(ALL_SUBDIRS); do \
  26. [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  27. done
  28. build.h : build-info config.status
  29. $(SHELL) $< $(version) \
  30. '$(repdir)' '$(replispdir)' '$(repexecdir)' \
  31. '$(repdocfile)' '$(repcommonexecdir)' >$@
  32. check :
  33. for dir in $(ALL_SUBDIRS); do \
  34. [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  35. done
  36. install : all installdirs
  37. for dir in $(INSTALL_SUBDIRS); do \
  38. ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  39. done
  40. $(INSTALL_DATA) doc-strings $(DESTDIR)$(repexecdir)
  41. $(INSTALL_SCRIPT) emulate-gnu-tar $(DESTDIR)$(repexecdir)
  42. $(INSTALL_SCRIPT) libtool $(DESTDIR)$(repcommonexecdir)
  43. $(INSTALL_DATA) rules.mk $(DESTDIR)$(repcommonexecdir)
  44. $(INSTALL_SCRIPT) install-aliases $(DESTDIR)$(repcommonexecdir)
  45. $(INSTALL_DATA) rep-debugger.el $(DESTDIR)$(emacssitelispdir)
  46. mkdir -p $(DESTDIR)$(libdir)/pkgconfig
  47. $(INSTALL_DATA) $(top_srcdir)/librep.pc $(DESTDIR)$(libdir)/pkgconfig/
  48. installdirs : mkinstalldirs
  49. $(SHELL) $< $(DESTDIR)$(repdir) \
  50. $(DESTDIR)$(bindir) $(DESTDIR)$(aclocaldir) \
  51. $(DESTDIR)$(repcommonexecdir) $(DESTDIR)$(repexecdir) \
  52. $(DESTDIR)$(emacssitelispdir)
  53. uninstall :
  54. -for dir in $(INSTALL_SUBDIRS); do \
  55. ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  56. done
  57. rm -rf $(DESTDIR)$(repdir)
  58. rm -rf $(DESTDIR)$(repexecdir)
  59. rm -f $(DESTDIR)$(repcommonexecdir)/rules.mk
  60. rm -f $(DESTDIR)$(repcommonexecdir)/install-aliases
  61. rm -f $(DESTDIR)$(repcommonexecdir)/libtool
  62. rm -f $(DESTDIR)$(emacssitelispdir)/rep-debugger.el
  63. rm -f $(DESTDIR)$(libdir)/pkgconfig/librep.pc
  64. doc-strings : src/repdoc
  65. src/repdoc doc-strings `find $(top_srcdir) -name '*.c' -print`
  66. src/repdoc :
  67. ( cd src && $(MAKE) repdoc )
  68. NEWS : man/news.texi
  69. ( cd man && $(MAKE) ../NEWS )
  70. clean :
  71. -for dir in $(ALL_SUBDIRS); do \
  72. [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  73. done
  74. rm -f *~ NEWS doc-strings TAGS build.h
  75. distclean :
  76. -for dir in $(ALL_SUBDIRS); do \
  77. [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \
  78. done
  79. rm -f config.cache config.h config.log config.status Makefile libtool
  80. rm -f *~ NEWS doc-strings TAGS build.h rules.mk configure.orig librep.pc
  81. debclean : distclean
  82. rm librep*.ebuild librep.spec config.h.in
  83. rm m4/* aclocal.m4 configure ltmain.sh
  84. gitclean : distclean
  85. rm -f aclocal.m4 configure
  86. rm -rf autom4te.cache
  87. rm -f librep.spec librep-*.ebuild
  88. -fakeroot debian/rules clean
  89. rm -f librep-*.ebuild librep.spec
  90. rm -rf aclocal.m4 m4/ configure \
  91. configure.lineno ltmain.sh \
  92. autom4te.cache
  93. tags: TAGS
  94. #
  95. # Use separate and explicit expressions rather than "(def.*" to avoid
  96. # grabbing:
  97. # ./lisp/rep.jl:54: (default-error-handler (car error-data) [...]
  98. # ./lisp/define.jl:146: (define-scan-internals body))
  99. #
  100. TAGS :
  101. -rm -f $@
  102. set -e; \
  103. c_files=`find $(top_srcdir) -name '*.[hc]' -print`; \
  104. rep_files=`find $(top_srcdir) -name '*.jl' -print`; \
  105. ${ETAGS} --language=c $$c_files \
  106. --language=none \
  107. --regex='/[ \t]*DEFSTRING[ \t]*([ \t]*\([^ \t,]+\)/\1/' \
  108. --regex='/[ \t]*DEFSYM[ \t]*([ \t]*\([^ \t,]+\)/Q\1/' \
  109. --regex='/[ \t]*DEFSYM[ \t]*([ \t]*[^ \t,]+[ \t,]+"\([^"]+\)/\1/' \
  110. --regex='/[ \t]*DEFUN\(_INT\)?[ \t]*([ \t]*"\([^"]+\)/\2/' \
  111. $$c_files \
  112. --language=lisp $$rep_files \
  113. --language=none \
  114. --regex='/[ \t]+([ \t]*defun[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  115. --regex='/[ \t]+([ \t]*define[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  116. --regex='/[ \t]+([ \t]*defmacro[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  117. --regex='/[ \t]+([ \t]*defsubst[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  118. --regex='/[ \t]+([ \t]*defconst[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  119. --regex='/[ \t]+([ \t]*defvar[ \t]+(?[ \t]*\([^ \t)]+\)/\1/' \
  120. --regex="/[ \t]+([ \t]*define-file-handler[ \t]+'\([^ \t)]+\)/\1/" \
  121. --regex="/[ \t]+([ \t]*define-datum-printer[ \t]+'\([^ \t)]+\)/\1/"\
  122. $$rep_files
  123. .PHONY: install uninstall nobak clean gitclean TAGS tags distclean