diff options
author | Bozhidar Batsov <bozhidar@tradeo.com> | 2013-10-28 18:16:49 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@tradeo.com> | 2013-10-28 18:16:49 +0200 |
commit | bf4e8f1d012fa91f36b53f5679360af933564ca5 (patch) | |
tree | 96bbc5f43bccda61aabb7770210a2d1363f04afe /Makefile | |
parent | 024db0cde6587f999e3d1257f83f157fca227a63 (diff) |
Add package building task
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,6 +2,8 @@ EMACS = emacs EMACSFLAGS = -L . CASK = cask VAGRANT = vagrant +VERSION = $(shell git describe --tags --abbrev=0 | sed 's/^v//') +PACKAGE_DIR = packages/cider-$(VERSION) ELS = $(wildcard *.el) OBJECTS = $(ELS:.el=.elc) @@ -20,6 +22,15 @@ elpa: $(CASK) update touch $@ +package: + mkdir -p $(PACKAGE_DIR) + cp $(ELS) $(PACKAGE_DIR) + tar cf $(PACKAGE_DIR).tar $(PACKAGE_DIR) + +packageclean: + rm -rf $(PACKAGE_DIR) + rm $(PACKAGE_DIR).tar + .PHONY: build build : elpa $(OBJECTS) |