@@ -35,9 +35,6 @@ ELFILES = \
35
35
36
36
ELCFILES = $(ELFILES:.el=.elc )
37
37
AUTOLOADS = haskell-mode-autoloads.el
38
- DIST_FILES = $(ELFILES ) $(ELCFILES ) $(AUTOLOADS ) haskell-mode-pkg.el.in logo.svg Makefile README.md NEWS
39
- DIST_FILES_EX = examples/init.el examples/fontlock.hs examples/indent.hs
40
- DIST_TGZ = haskell-mode-$(GIT_VERSION ) .tar.gz
41
38
42
39
PKG_DIST_FILES = $(ELFILES ) logo.svg
43
40
PKG_TAR = haskell-mode-$(VERSION ) .tar
@@ -48,7 +45,7 @@ ELCHECKS=$(addprefix check-, $(ELFILES:.el=))
48
45
--eval " (byte-compile-disable-warning 'cl-functions)" \
49
46
-f batch-byte-compile $<
50
47
51
- .PHONY : all compile info dist clean check $(ELCHECKS ) elpa package
48
+ .PHONY : all compile info clean check $(ELCHECKS ) elpa package
52
49
53
50
all : compile $(AUTOLOADS )
54
51
@@ -67,13 +64,10 @@ check: $(ELCHECKS)
67
64
@echo " checks passed!"
68
65
69
66
clean :
70
- $(RM ) $(ELCFILES ) $(AUTOLOADS ) $(AUTOLOADS:.el=.elc ) $(DIST_TGZ ) $( PKG_TAR )
67
+ $(RM ) $(ELCFILES ) $(AUTOLOADS ) $(AUTOLOADS:.el=.elc ) $(PKG_TAR )
71
68
72
69
info : # No Texinfo file, sorry.
73
70
74
- # Generate snapshot distribution
75
- dist : $(DIST_TGZ )
76
-
77
71
# Generate ELPA-compatible package
78
72
package : $(PKG_TAR )
79
73
elpa : $(PKG_TAR )
@@ -83,7 +77,7 @@ $(PKG_TAR): $(PKG_DIST_FILES) haskell-mode-pkg.el.in
83
77
mkdir haskell-mode-$(VERSION )
84
78
cp $(PKG_DIST_FILES ) haskell-mode-$(VERSION ) /
85
79
sed -e ' s/@VERSION@/$(VERSION)/g' < haskell-mode-pkg.el.in > haskell-mode-$(VERSION ) /haskell-mode-pkg.el
86
- sed -e ' s/@GIT_VERSION@/$(GIT_VERSION)/g;s/@VERSION@/$(VERSION)/g' < haskell-mode.el > haskell-mode-$(VERSION ) /haskell-mode.el # NO_DIST
80
+ sed -e ' s/@GIT_VERSION@/$(GIT_VERSION)/g;s/@VERSION@/$(VERSION)/g' < haskell-mode.el > haskell-mode-$(VERSION ) /haskell-mode.el
87
81
tar cvf $@ haskell-mode-$(VERSION )
88
82
rm -rf haskell-mode-$(VERSION )
89
83
@echo
@@ -95,24 +89,9 @@ $(AUTOLOADS): $(ELFILES) haskell-mode.elc
95
89
--eval ' (setq generated-autoload-file "$(CURDIR)/$@")' \
96
90
-f batch-update-autoloads " ."
97
91
98
- # embed version number into .elc file
92
+ # HACK: embed version number into .elc file
99
93
haskell-mode.elc : haskell-mode.el
100
- sed -e ' s/@GIT_VERSION@/$(GIT_VERSION)/g;s/@VERSION@/$(VERSION)/g' < haskell-mode.el > haskell-mode.tmp.el # NO_DIST
101
- @$(BATCH ) --eval " (byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile haskell-mode.tmp.el # NO_DIST
102
- mv haskell-mode.tmp.elc haskell-mode.elc # NO_DIST
103
- $(RM ) haskell-mode.tmp.el # NO_DIST
104
-
105
- $(DIST_TGZ ) : $(DIST_FILES )
106
- rm -rf haskell-mode-$(GIT_VERSION )
107
- mkdir haskell-mode-$(GIT_VERSION )
108
- cp -p $(DIST_FILES ) haskell-mode-$(GIT_VERSION )
109
- mkdir haskell-mode-$(GIT_VERSION ) /examples
110
- cp -p $(DIST_FILES_EX ) haskell-mode-$(GIT_VERSION ) /examples
111
-
112
- printf "1s/=.*/= $(VERSION)/\nw\n" | ed -s haskell-mode-$(GIT_VERSION)/Makefile # NO_DIST
113
- printf "2s/=.*/= $(GIT_VERSION)/\nw\n" | ed -s haskell-mode-$(GIT_VERSION)/Makefile # NO_DIST
114
- printf "g/NO_DIST/d\nw\n" | ed -s haskell-mode-$(GIT_VERSION)/Makefile # NO_DIST
115
- printf ',s/@VERSION@/$(VERSION)/\nw\n' | ed -s haskell-mode-$(GIT_VERSION)/haskell-mode.el # NO_DIST
116
-
117
- tar cvzf $@ haskell-mode-$(GIT_VERSION)
118
- rm -rf haskell-mode-$(GIT_VERSION)
94
+ sed -e ' s/@GIT_VERSION@/$(GIT_VERSION)/g;s/@VERSION@/$(VERSION)/g' < haskell-mode.el > haskell-mode.tmp.el
95
+ @$(BATCH ) --eval " (byte-compile-disable-warning 'cl-functions)" -f batch-byte-compile haskell-mode.tmp.el
96
+ mv haskell-mode.tmp.elc haskell-mode.elc
97
+ $(RM ) haskell-mode.tmp.el
0 commit comments