-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (36 loc) · 779 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NAME = inx-pathops
docs = \
COPYING \
README.md
source = \
src/pathops.inx \
src/pathops.py \
src/pathops_combine.inx \
src/pathops_cutpath.inx \
src/pathops_difference.inx \
src/pathops_division.inx \
src/pathops_exclusion.inx \
src/pathops_intersection.inx \
src/pathops_union.inx
data =
# -----
ChangeLog.txt : $(docs) $(source) $(data)
rm -f $@
git log --oneline > $@
all = ChangeLog.txt $(docs) $(source) $(data)
revno = $(shell git rev-parse --short HEAD)
tag = $(shell git tag | tail -1)
.PHONY: list
list: $(all)
@for i in $(all); do \
echo $$i; \
done
.PHONY: zip
zip: $(all)
zip "$(NAME)-$(revno).zip" -X $(all)
@echo "$(NAME)-$(revno).zip"
.PHONY: release
release: \
$(all)
zip "$(NAME)-$(tag).zip" -X $(all)
@echo "$(NAME)-$(tag).zip"