Initial Commit
[packages] / xemacs-packages / cedet-common / Makefile.upstream
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 misc_AUX=ChangeLog
13 EMACS=emacs
14 LOADPATH= ./
15 LOADDEFS=cedet-loaddefs.el
16 LOADDIRS=.
17 init_LISP=cedet-load.el
18 EMACS=emacs
19 setup_LISP=cedet.el
20 common_LISP=cedet-autogen.el cedet-compat.el ezimage.el inversion.el pprint.el sformat.el fame.el working.el cedet-edebug.el mode-local.el cedet-files.el
21 VERSION=1.0pre4
22 DISTDIR=$(top)common-$(VERSION)
23
24
25
26 all: autoloads init setup common icons
27
28 .PHONY: autoloads
29 autoloads: 
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 "(require 'cedet-autogen)" >> $@-compile-script
35         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f cedet-batch-update-autoloads $(LOADDEFS) $(LOADDIRS)
36
37 .PHONY: init
38 init: $(init_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: setup
47 setup: $(setup_LISP)
48         @echo "(add-to-list 'load-path nil)" > $@-compile-script
49         for loadpath in . ${LOADPATH}; do \
50            echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
51         done;
52         @echo "(setq debug-on-error t)" >> $@-compile-script
53         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
54
55 .PHONY: common
56 common: $(common_LISP)
57         @echo "(add-to-list 'load-path nil)" > $@-compile-script
58         for loadpath in . ${LOADPATH}; do \
59            echo "(add-to-list 'load-path \"$$loadpath\")" >> $@-compile-script; \
60         done;
61         @echo "(setq debug-on-error t)" >> $@-compile-script
62         "$(EMACS)" -batch --no-site-file -l $@-compile-script -f batch-byte-compile $^
63
64 .PHONY:icons
65 icons:
66         cd icons; $(MAKE)
67
68 tags: 
69         cd icons/; make $(MFLAGS) $@
70
71
72 clean:
73         rm -f *.elc
74
75 .PHONY: dist
76
77 dist: autoloads
78         mkdir $(DISTDIR)
79         cp $(misc_AUX) cedet-loaddefs.el $(init_LISP) $(setup_LISP) $(common_LISP) $(ede_FILES) $(DISTDIR)
80         cd icons; $(MAKE) $(MFLAGS) DISTDIR=$(DISTDIR)/icons dist
81
82 Makefile: Project.ede
83         @echo Makefile is out of date!  It needs to be regenerated by EDE.
84         @echo If you have not modified Project.ede, you can use 'touch' to update the Makefile time stamp.
85         @false
86
87
88
89 # End of Makefile