forked from caldwell/commit-patch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
27 lines (19 loc) · 857 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
VERSION := $(shell perl -ne '/VERSION\s*=\s*'"'(.*)'"'/ and print "$$1"' commit-patch)
all: executable commit-partial commit-patch.1 commit-partial.1 commit-patch.html
# Darcs loses the x bit. :-(
executable:
chmod +x commit-patch
commit-partial:
ln -s commit-patch commit-partial
commit-patch.1: commit-patch
pod2man -c "User Commands" $< > $@
commit-partial.1:
ln -s commit-patch.1 commit-partial.1
commit-patch.html: commit-patch
pod2html --title="commit-patch Documentation" $< > $@
release: commit-patch-$(VERSION)
commit-patch-$(VERSION): commit-patch commit-partial commit-patch-buffer.el commit-patch.1 commit-partial.1 commit-patch.html Makefile README COPYING ChangeLog
mkdir commit-patch-$(VERSION)
rsync -a $^ commit-patch-$(VERSION)
tar czf commit-patch-$(VERSION).tar.gz commit-patch-$(VERSION)
rm -rf commit-patch-$(VERSION)