PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/cedet/Makefile

https://bitbucket.org/hoangtu/emacs
Makefile | 131 lines | 81 code | 32 blank | 18 comment | 4 complexity | 4e71c4610621b86bd6b9df240aabfff8 MD5 | raw file
  1. # Toplevel Makefile
  2. #
  3. # (C) 2011, 2012 CEDET Developers
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License as
  7. # published by the Free Software Foundation; either version 2, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU Emacs; see the file COPYING. If not, write to the
  17. # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. # Boston, MA 02110-1301, USA.
  19. PROJECTS=lisp/cedet lisp/eieio lisp/speedbar lisp/cedet/cogre lisp/cedet/semantic \
  20. lisp/cedet/ede lisp/cedet/srecode lisp/cedet/semantic/bovine lisp/cedet/semantic/wisent \
  21. lisp/cedet/semantic/analyze lisp/cedet/semantic/decorate lisp/cedet/semantic/ectags \
  22. lisp/cedet/semantic/symref doc/texi doc/texi/semantic
  23. PROJECTS_AUTOLOADS=lisp/cedet lisp/eieio lisp/speedbar lisp/cedet/cogre lisp/cedet/semantic \
  24. lisp/cedet/ede lisp/cedet/srecode
  25. EMACS=emacs
  26. EMACSFLAGS=-batch --no-site-file -l cedet-remove-builtin.el
  27. LOADDEFS=loaddefs.el
  28. BOOTSTRAP=(progn (global-ede-mode) (find-file "$(CURDIR)/lisp/Project.ede") (ede-proj-regenerate) (find-file "$(CURDIR)/doc/texi/Project.ede") (ede-proj-regenerate))
  29. UTEST=(progn (add-to-list (quote load-path) "$(CURDIR)/tests") (add-to-list (quote load-path) "$(CURDIR)/tests/eieio") (require (quote cedet-utests)) (semantic-mode))
  30. SHOWVERSION=(message "Emacs version: %s %s on %s " emacs-version (bound-and-true-p emacs-bzr-version) (symbol-name system-type))
  31. RM=rm
  32. FIND=find
  33. INSTALL-INFO=install-info
  34. INFO_FILES=$(shell $(FIND) $(CURDIR)/doc/texi -type f -name '*.info')
  35. INFODIR=$(CURDIR)/doc/info
  36. all: showversion clean-autoloads autoloads touch-makefiles compile info install-info
  37. ebuild:
  38. $(EMACS) -Q --batch -l cedet-build.el -f cedet-build
  39. compile:
  40. $(MAKE) -C lisp
  41. makefiles: $(addsuffix /Makefile,$(PROJECTS))
  42. $(addsuffix /Makefile,$(PROJECTS)): $(addsuffix /Project.ede,$(PROJECTS))
  43. @echo "Creating Makefiles using EDE."
  44. @$(EMACS) $(EMACSFLAGS) --eval '(setq cedet-bootstrap-in-progress t ede-project-directories t)' -f toggle-debug-on-error -l cedet-devel-load.el --eval '$(BOOTSTRAP)'
  45. makefiles-bootstrap:
  46. @echo "Creating Makefiles using EDE and builtin Emacs-CEDET as fallback."
  47. @$(EMACS) -batch --no-site-file --eval '(setq cedet-bootstrap-in-progress t ede-project-directories t)' -l cedet-devel-load.el --eval '$(BOOTSTRAP)'
  48. touch-makefiles:
  49. @echo Updating timestamps on all Makefiles.
  50. $(FIND) . -name "Makefile" -exec touch '{}' \;
  51. autoloads:
  52. @echo "Generating autoloads."
  53. @$(foreach proj,$(PROJECTS_AUTOLOADS),cd $(CURDIR)/$(proj) && $(MAKE) autoloads;)
  54. info:
  55. $(MAKE) -C doc -C texi
  56. install-info:
  57. @echo Installing info files under $(INFODIR)
  58. @mkdir -p $(INFODIR)
  59. @$(foreach infofile,$(INFO_FILES),cp $(infofile) $(INFODIR);$(INSTALL-INFO) --info-dir=$(INFODIR) $(infofile);)
  60. clean-autoloads:
  61. @echo Removing loaddefs.el files from subprojects.
  62. @$(foreach proj,$(PROJECTS_AUTOLOADS),cd $(CURDIR)/$(proj) && if [ -f $(LOADDEFS) ];then $(RM) -f $(LOADDEFS);fi;)
  63. clean-all: clean-autoloads
  64. @echo Calling \"$(MAKE) clean\" in all projects.
  65. @$(foreach proj,$(PROJECTS),echo " > $(proj)";cd $(CURDIR)/$(proj) && $(MAKE) clean;)
  66. utest:
  67. $(EMACS) -Q -l cedet-devel-load.el --eval '$(UTEST)' -f cedet-utest
  68. utest-batch:
  69. $(EMACS) $(EMACSFLAGS) -l cedet-devel-load.el --eval '$(UTEST)' -f cedet-utest-batch
  70. itest: itest-make itest-automake itest-cpproot itest-javaroot
  71. itest-make:
  72. cd $(CURDIR)/tests;./cit-test.sh Make
  73. itest-automake:
  74. cd $(CURDIR)/tests;./cit-test.sh Automake
  75. itest-cpproot:
  76. cd $(CURDIR)/tests;./cit-test.sh cpproot
  77. itest-javaroot:
  78. cd $(CURDIR)/tests;./cit-test.sh javaroot
  79. itest-android:
  80. cd $(CURDIR)/tests;./cit-test.sh Android
  81. itest-arduino:
  82. cd $(CURDIR)/tests;./cit-test.sh Arduino
  83. itest-batch: itest-make-batch itest-automake-batch itest-cpproot-batch itest-javaroot-batch
  84. itest-make-batch:
  85. cd $(CURDIR)/tests;./cit-test.sh Make --batch
  86. itest-automake-batch:
  87. cd $(CURDIR)/tests;./cit-test.sh Automake --batch
  88. itest-cpproot-batch:
  89. cd $(CURDIR)/tests;./cit-test.sh cpproot --batch
  90. itest-javaroot-batch:
  91. cd $(CURDIR)/tests;./cit-test.sh javaroot --batch
  92. itest-android-batch:
  93. cd $(CURDIR)/tests;./cit-test.sh Android --batch
  94. itest-arduino-batch:
  95. cd $(CURDIR)/tests;./cit-test.sh Arduino --batch
  96. itest-stl-batch:
  97. $(EMACS) $(EMACSFLAGS) -l cedet-devel-load.el -l $(CURDIR)/tests/cedet/semantic/stltest.el
  98. showversion:
  99. @$(EMACS) -Q --batch --eval '$(SHOWVERSION)'