emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]