aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2015-07-05 21:53:33 +0200
committerJonas Bernoulli <jonas@bernoul.li>2015-07-05 21:53:33 +0200
commitd919e71befef47ae753cf11277adfb84e27341e5 (patch)
treef9905568b86c7e365ee4e3acada5227874f4e1c7
parent97414c52532e4036104ffdb8dc55839fab28b84e (diff)
Makefile: fix elpa target
-rw-r--r--Makefile2
-rw-r--r--default.mk1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8194fdf..961855f 100644
--- a/Makefile
+++ b/Makefile
@@ -160,6 +160,8 @@ with-editor-$(VERSION).tar: info
git-commit-$(VERSION).el:
@printf "Packing $@\n"
@$(CP) lisp/git-commit.el git-commit-$(VERSION).el
+ @$(SED) -i git-commit-$(VERSION).el \
+ -e "s/^;; Keywords:/;; Package-Version: $(VERSION)\n;; Keywords:/"
define magit_popup_pkg
(define-package "magit-popup" "$(VERSION)"
diff --git a/default.mk b/default.mk
index 24b0641..30d00e9 100644
--- a/default.mk
+++ b/default.mk
@@ -11,6 +11,7 @@ CP ?= install -p -m 644
MKDIR ?= install -p -m 755 -d
RMDIR ?= rm -rf
TAR ?= tar
+SED ?= sed
PACKAGES = with-editor git-commit magit-popup magit
PACKAGE_VERSIONS = $(addsuffix -$(VERSION),$(PACKAGES))