Initial Commit
[packages] / xemacs-packages / semantic / wisent / Makefile
1 # Automatically Generated Makefile by EDE.
2 # For use with: make
3 #
4 # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
5 # EDE is the Emacs Development Environment.
6 # http://cedet.sourceforge.net/ede.shtml
7
8
9 top=../
10 ede_FILES=Project.ede Makefile
11
12 tools_LISP=bison-wisent.el
13 EMACS=emacs
14 wisent_LISP=wisent.el semantic-wisent.el wisent-comp.el wisent-expr.el wisent-grammar.el wisent-debug.el wisent-grammar-macros.el
15 LOADPATH= ../../speedbar/ ../../common/ ../bovine/ ../\
16     ../../eieio/
17 wy_SEMANTIC_GRAMMAR=wisent-java-tags.wy wisent-awk.wy wisent-calc.wy wisent-cim.wy wisent-java.wy wisent-python.wy
18 EMACS=emacs
19 wy_SEMANTIC_GRAMMAR_EL=wisent-java-tags-wy.el wisent-awk-wy.el wisent-calc-wy.el wisent-cim-wy.el wisent-java-wy.el wisent-python-wy.el
20 languages_LISP=wisent-calc.el wisent-java.el wisent-java-tags.el wisent-python.el
21 VERSION=2.0pre4
22 DISTDIR=$(top)semantic-$(VERSION)/wisent
23
24
25
26 all: tools wisent wy languages
27
28 .PHONY: tools
29 tools: $(tools_LISP)
30         @echo "(add-to-list 'load-path nil)" > $@-compile-script
31         for loadpath in . ${LOADPATH}; do \
32            echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
33         done;
34         @echo "(setq debug-on-error t)" >> $@-compile-script
35         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
36
37 .PHONY: wisent
38 wisent: $(wisent_LISP)
39         @echo "(add-to-list 'load-path nil)" > $@-compile-script
40         for loadpath in . ${LOADPATH}; do \
41            echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
42         done;
43         @echo "(setq debug-on-error t)" >> $@-compile-script
44         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
45
46 .PHONY: wy
47 wy: $(wy_SEMANTIC_GRAMMAR)
48         @echo "(add-to-list 'load-path nil)" > grammar-make-script
49         @for loadpath in . ${LOADPATH}; do \
50            echo "(add-to-list 'load-path \"$$loadpath\")" >> grammar-make-script; \
51         done;
52         @echo "(require 'semantic-load)" >> grammar-make-script
53         @echo "(require 'semantic-grammar)" >> grammar-make-script
54         "$(EMACS)" -batch --no-site-file -l grammar-make-script -f semantic-grammar-batch-build-packages $^
55
56 .PHONY: languages
57 languages: $(languages_LISP)
58         @echo "(add-to-list 'load-path nil)" > $@-compile-script
59         for loadpath in . ${LOADPATH}; do \
60            echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
61         done;
62         @echo "(setq debug-on-error t)" >> $@-compile-script
63         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
64
65 tags: 
66
67
68 clean:
69         rm -f *.elc
70
71 .PHONY: dist
72
73 dist: $(wy_SEMANTIC_GRAMMAR_EL)
74         mkdir $(DISTDIR)
75         cp $(tools_LISP) $(wisent_LISP) $(wy_SEMANTIC_GRAMMAR) $(wy_SEMANTIC_GRAMMAR_EL) $(languages_LISP) $(ede_FILES) $(DISTDIR)
76
77 Makefile: Project.ede
78         @echo Makefile is out of date!  It needs to be regenerated by EDE.
79         @echo If you have not modified Project.ede, you can use 'touch' to update the Makefile time stamp.
80         @false
81
82
83
84 # End of Makefile