forked from abo-abo/matlab-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (62 loc) · 2.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Automatically Generated Makefile by EDE.
# For use with: make
# Relative File Name: Makefile
#
# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
# EDE is the Emacs Development Environment.
# http://cedet.sourceforge.net/ede.shtml
#
top="$(CURDIR)"/
ede_FILES=Project.ede Makefile
CEDET_PATH:=~/cedet/trunk/lisp
EMACS=emacs
EMACSFLAGS=-batch --no-site-file --eval '(setq debug-on-error t)'
LOADPATH= ./ $(CEDET_PATH)/cedet/
require=$(foreach r,$(1),(require (quote $(r))))
LOADDEFS=matlab-load.el
LOADDIRS=.
misc_MISC=ChangeLog ChangeLog.old1 ChangeLog.old2 INSTALL README dl_emacs_support.m
lisp_LISP=matlab.el mlint.el tlc.el matlab-publish.el linemark.el
cedet_LISP=semantic-matlab.el semanticdb-matlab.el srecode-matlab.el cedet-matlab.el company-matlab-shell.el
VERSION=3.3.2
DISTDIR=$(top)matlab-emacs-$(VERSION)
all: autoloads misc lisp cedet toolbox Templates
.PHONY: clean-autoloads
clean-autoloads:
rm -f $(LOADDEFS)
.PHONY: autoloads
autoloads:
$(EMACS) $(EMACSFLAGS) $(AUTOGENFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require, $(PRELOADS)) (setq generated-autoload-file "$(abspath $(LOADDEFS))"))' -f batch-update-autoloads $(abspath $(LOADDIRS))
misc:
@
%.elc: %.el
$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(progn $(call require, $(PRELOADS)))' -f batch-byte-compile $^
.PHONY: lisp
lisp: $(addsuffix c, $(lisp_LISP))
.PHONY: cedet
cedet: $(addsuffix c, $(cedet_LISP))
.PHONY:toolbox
toolbox:
$(MAKE) -C toolbox
.PHONY:Templates
Templates:
$(MAKE) -C templates
tags:
$(MAKE) -C toolbox/ $(MFLAGS) $@
$(MAKE) -C templates/ $(MFLAGS) $@
clean:
rm -f *.elc
.PHONY: dist
dist: autoloads
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp matlab-load.el $(misc_MISC) $(lisp_LISP) $(cedet_LISP) $(ede_FILES) $(DISTDIR)
$(MAKE) -C toolbox $(MFLAGS) DISTDIR=$(DISTDIR)/toolbox dist
$(MAKE) -C templates $(MFLAGS) DISTDIR=$(DISTDIR)/templates dist
tar -cvzf $(DISTDIR).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)
Makefile: Project.ede
@echo Makefile is out of date! It needs to be regenerated by EDE.
@echo If you have not modified Project.ede, you can use 'touch' to update the Makefile time stamp.
@false
# End of Makefile