From 5d9cc7c32f4bd2fc93860a5b827dac2c17c6542c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 6 Feb 2018 11:29:03 -0800 Subject: [PATCH] Add Makefile to create package --- .gitignore | 2 ++ Makefile | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..138fba4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vc-p4-*.tar +vc-p4-pkg.el diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..db788f1 --- /dev/null +++ b/Makefile @@ -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