@@ -8,49 +8,34 @@ BATCH = $(EMACS) $(EFLAGS) --batch -Q -L .
8
8
SUBST_ATAT = sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION ) /g;s/@GIT_VERSION@/$(GIT_VERSION ) /g;s/@@VERSION@@/$(VERSION ) /g;s/@VERSION@/$(VERSION ) /g'
9
9
10
10
ELFILES = \
11
- ghc-core.el \
12
- haskell-align-imports.el \
13
- haskell-c.el \
14
- haskell-cabal.el \
15
- haskell-checkers.el \
16
- haskell-compat.el \
17
- haskell-compile.el \
18
- haskell-decl-scan.el \
19
- haskell-doc.el \
20
- haskell-font-lock.el \
21
- haskell-indent.el \
22
- haskell-indentation.el \
23
- haskell-collapse.el \
24
- haskell-interactive-mode.el \
25
- haskell-menu.el \
26
- haskell-mode.el \
27
- haskell-move-nested.el \
28
- haskell-navigate-imports.el \
29
- haskell-package.el \
30
- haskell-process.el \
31
- haskell-session.el \
32
- haskell-show.el \
33
- haskell-simple-indent.el \
34
- haskell-sort-imports.el \
35
- haskell-string.el \
36
- haskell-str.el \
37
- haskell-unicode-input-method.el \
38
- haskell-utils.el \
39
- haskell-yas.el \
40
- haskell-presentation-mode.el \
41
- inf-haskell.el
11
+ purescript-align-imports.el \
12
+ purescript-collapse.el \
13
+ purescript-font-lock.el \
14
+ purescript-indent.el \
15
+ purescript-indentation.el \
16
+ purescript-mode.el \
17
+ purescript-move-nested.el \
18
+ purescript-navigate-imports.el \
19
+ purescript-package.el \
20
+ purescript-simple-indent.el \
21
+ purescript-sort-imports.el \
22
+ purescript-str.el \
23
+ purescript-string.el \
24
+ purescript-unicode-input-method.el \
25
+ purescript-utils.el \
26
+ purescript-yas.el
42
27
43
28
ELCFILES = $(ELFILES:.el=.elc )
44
- AUTOLOADS = haskell -mode-autoloads.el
29
+ AUTOLOADS = purescript -mode-autoloads.el
45
30
46
- PKG_DIST_FILES = $(ELFILES ) logo.svg NEWS haskell -mode.info dir
47
- PKG_TAR = haskell -mode-$(VERSION ) .tar
31
+ PKG_DIST_FILES = $(ELFILES ) logo.svg NEWS purescript -mode.info dir
32
+ PKG_TAR = purescript -mode-$(VERSION ) .tar
48
33
ELCHECKS =$(addprefix check-, $(ELFILES:.el= ) )
49
34
50
35
% .elc : % .el
51
36
@$(BATCH ) \
52
37
--eval " (byte-compile-disable-warning 'cl-functions)" \
53
- -f batch-byte-compile $<
38
+ -f batch-byte-compile $<
54
39
55
40
.PHONY : all compile info clean check $(ELCHECKS ) elpa package
56
41
@@ -61,7 +46,7 @@ compile: $(ELCFILES)
61
46
$(ELCHECKS ) : check-% : % .el
62
47
@$(BATCH ) --eval ' (when (check-declare-file "$*.el") (error "check-declare failed"))'
63
48
@$(BATCH ) \
64
- --eval " (setq byte-compile-error-on-warn t)" \
49
+ --eval " (setq byte-compile-error-on-warn t)" \
65
50
--eval " (byte-compile-disable-warning 'cl-functions)" \
66
51
-f batch-byte-compile $* .el
67
52
@$(RM ) $* .elc
@@ -79,47 +64,47 @@ check: clean $(ELCHECKS)
79
64
@echo " checks passed!"
80
65
81
66
clean :
82
- $(RM ) $(ELCFILES ) $(AUTOLOADS ) $(AUTOLOADS:.el=.elc ) $(PKG_TAR ) haskell -mode.tmp.texi haskell -mode.info dir
67
+ $(RM ) $(ELCFILES ) $(AUTOLOADS ) $(AUTOLOADS:.el=.elc ) $(PKG_TAR ) purescript -mode.tmp.texi purescript -mode.info dir
83
68
84
- info : haskell -mode.info dir
69
+ info : purescript -mode.info dir
85
70
86
- dir : haskell -mode.info
71
+ dir : purescript -mode.info
87
72
$(INSTALL_INFO ) --dir=$@ $<
88
73
89
- haskell -mode.tmp.texi : haskell -mode.texi
90
- $(SUBST_ATAT ) < haskell -mode.texi > haskell -mode.tmp.texi
74
+ purescript -mode.tmp.texi : purescript -mode.texi
75
+ $(SUBST_ATAT ) < purescript -mode.texi > purescript -mode.tmp.texi
91
76
92
- haskell -mode.info : haskell -mode.tmp.texi
77
+ purescript -mode.info : purescript -mode.tmp.texi
93
78
$(MAKEINFO ) $(MAKEINFO_FLAGS ) -o $@ $<
94
79
95
- haskell -mode.html : haskell -mode.tmp.texi
80
+ purescript -mode.html : purescript -mode.tmp.texi
96
81
$(MAKEINFO ) $(MAKEINFO_FLAGS ) --html --no-split -o $@ $<
97
82
98
83
# Generate ELPA-compatible package
99
84
package : $(PKG_TAR )
100
85
elpa : $(PKG_TAR )
101
86
102
- $(PKG_TAR ) : $(PKG_DIST_FILES ) haskell -mode-pkg.el.in
103
- rm -rf haskell -mode-$(VERSION )
104
- mkdir haskell -mode-$(VERSION )
105
- cp $(PKG_DIST_FILES ) haskell -mode-$(VERSION ) /
106
- $(SUBST_ATAT ) < haskell -mode-pkg.el.in > haskell -mode-$(VERSION ) /haskell -mode-pkg.el
107
- $(SUBST_ATAT ) < haskell -mode.el > haskell -mode-$(VERSION ) /haskell -mode.el
108
- (sed -n -e ' /^;;; Commentary/,/^;;;/p' | egrep ' ^;;( |$$)' | cut -c4-) < haskell -mode.el > haskell -mode-$(VERSION ) /README
109
- tar cvf $@ haskell -mode-$(VERSION )
110
- rm -rf haskell -mode-$(VERSION )
87
+ $(PKG_TAR ) : $(PKG_DIST_FILES ) purescript -mode-pkg.el.in
88
+ rm -rf purescript -mode-$(VERSION )
89
+ mkdir purescript -mode-$(VERSION )
90
+ cp $(PKG_DIST_FILES ) purescript -mode-$(VERSION ) /
91
+ $(SUBST_ATAT ) < purescript -mode-pkg.el.in > purescript -mode-$(VERSION ) /purescript -mode-pkg.el
92
+ $(SUBST_ATAT ) < purescript -mode.el > purescript -mode-$(VERSION ) /purescript -mode.el
93
+ (sed -n -e ' /^;;; Commentary/,/^;;;/p' | egrep ' ^;;( |$$)' | cut -c4-) < purescript -mode.el > purescript -mode-$(VERSION ) /README
94
+ tar cvf $@ purescript -mode-$(VERSION )
95
+ rm -rf purescript -mode-$(VERSION )
111
96
@echo
112
97
@echo " Created ELPA compatible distribution package '$@ ' from $( GIT_VERSION) "
113
98
114
- $(AUTOLOADS ) : $(ELFILES ) haskell -mode.elc
99
+ $(AUTOLOADS ) : $(ELFILES ) purescript -mode.elc
115
100
$(BATCH ) \
116
101
--eval ' (setq make-backup-files nil)' \
117
102
--eval ' (setq generated-autoload-file "$(CURDIR)/$@")' \
118
103
-f batch-update-autoloads " ."
119
104
120
105
# HACK: embed version number into .elc file
121
- haskell -mode.elc : haskell -mode.el
122
- $(SUBST_ATAT ) < haskell -mode.el > haskell -mode.tmp.el
123
- @$(BATCH ) --eval " (byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile haskell -mode.tmp.el
124
- mv haskell -mode.tmp.elc haskell -mode.elc
125
- $(RM ) haskell -mode.tmp.el
106
+ purescript -mode.elc : purescript -mode.el
107
+ $(SUBST_ATAT ) < purescript -mode.el > purescript -mode.tmp.el
108
+ @$(BATCH ) --eval " (byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile purescript -mode.tmp.el
109
+ mv purescript -mode.tmp.elc purescript -mode.elc
110
+ $(RM ) purescript -mode.tmp.el
0 commit comments