Add Makefile to create package

This commit is contained in:
Tom Willemse 2018-02-06 11:29:03 -08:00
parent d53eb68743
commit 5d9cc7c32f
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
vc-p4-*.tar
vc-p4-pkg.el

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
NAME=vc-p4
VERSION=0.1.0
DESCRIPTION="Perforce integration for VC"
.PHONY: vc-p4-pkg.el
$(NAME)-$(VERSION).tar: $(NAME)-pkg.el $(NAME).el p4-lowlevel.el
tar cf $@ --xform="s/^/$(NAME)-$(VERSION)\//" $^
$(NAME)-pkg.el:
echo "(define-package \"$(NAME)\" \"$(VERSION)\" \"$(DESCRIPTION)\")" > $@
clean:
rm -f $(NAME)-pkg.el $(NAME)-$(VERSION).tar