[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 111/119: Emacs packaging support with "make package"
From: |
Eric Schulte |
Subject: |
[elpa] 111/119: Emacs packaging support with "make package" |
Date: |
Mon, 10 Mar 2014 16:57:56 +0000 |
eschulte pushed a commit to branch master
in repository elpa.
commit aac1fc45c385812aa7eb0a55e65a5d210a8b9193
Author: Eric Schulte <address@hidden>
Date: Sun Feb 16 22:58:27 2014 -0700
Emacs packaging support with "make package"
---
.gitignore | 1 +
Makefile | 28 +++++++++++++++++++++++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/.gitignore b/.gitignore
index 43a58dd..09b6c67 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*.elc
stuff
benchmark
+web-server-*
diff --git a/Makefile b/Makefile
index d447e5f..889927d 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,35 @@ src: $(SRC)
doc:
$(MAKE) -C doc/
+doc/web-server.info:
+ $(MAKE) -C doc/ web-server.info
+
+doc/dir:
+ $(MAKE) -C doc/ dir
+
check: $(SRC)
$(BATCH) -l cl -l ert -l web-server-test -f ert-run-tests-batch-and-exit
clean:
- rm -f $(ELC)
+ rm -rf $(ELC) $(PACKAGE) $(PACKAGE).tar
$(MAKE) -C doc/ $(MAKECMDGOALS)
+
+# Packaging
+NAME=web-server
+VERSION=0.1.0
+DOC=Emacs Web Server
+REQ=((emacs "24.3"))
+DEFPKG=(define-package "$(NAME)" "$(VERSION)" "$(DOC)" (quote $(REQ)))
+PACKAGE=$(NAME)-$(VERSION)
+
+$(PACKAGE): $(filter-out web-server-test.el, $(SRC)) doc/web-server.info
doc/dir
+ mkdir -p $(PACKAGE)
+ cp $^ $(PACKAGE)
+ sed -n '/;;; Commentary:/,/;;; Code:/p' web-server.el|tail -n+3|head
-n-2|cut -c4- >$(PACKAGE)/README
+ echo -e '$(DEFPKG)' > $(PACKAGE)/$(NAME)-pkg.el
+
+$(PACKAGE).tar: $(PACKAGE)
+ tar cf $@ $<
+ rm -rf $<
+
+package: $(PACKAGE).tar
- [elpa] 101/119: manual application of chunked transfer encoding, (continued)
- [elpa] 101/119: manual application of chunked transfer encoding, Eric Schulte, 2014/03/10
- [elpa] 107/119: support for content and transfer encodings, Eric Schulte, 2014/03/10
- [elpa] 109/119: doc for new content/transfer encoding helpers, Eric Schulte, 2014/03/10
- [elpa] 110/119: automatically generate dir file w/install-info, Eric Schulte, 2014/03/10
- [elpa] 113/119: Fix WebSocket varint length encoding, Eric Schulte, 2014/03/10
- [elpa] 117/119: adding .elpaignore to keep extra file from package, Eric Schulte, 2014/03/10
- [elpa] 115/119: gnu elpa wants a "Maintainer:" pseudo-header, Eric Schulte, 2014/03/10
- [elpa] 114/119: dangerous example; web-socket comint shell buffer, Eric Schulte, 2014/03/10
- [elpa] 105/119: mention `make check' in README, Eric Schulte, 2014/03/10
- [elpa] 116/119: assign copyright to FSF, Eric Schulte, 2014/03/10
- [elpa] 111/119: Emacs packaging support with "make package",
Eric Schulte <=
- [elpa] 118/119: README and install instructions mention GNU ELPA, Eric Schulte, 2014/03/10
- [elpa] 112/119: add/use standard source headers, Eric Schulte, 2014/03/10
- [elpa] 119/119: Add 'packages/web-server/' from commit 'd0b6ae9df6014db2195da0081dc97cc8246f1fda', Eric Schulte, 2014/03/10