-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (37 loc) · 965 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
47
48
49
50
51
52
53
54
## default is to build on Linux using GNU make
sinclude mk/*?.mk
all : src Lua
Lua :
cd ./Lua && $(MAKE) all
sh :
cd ./sh && $(MAKE) all
src :
cd ./src && $(MAKE) all
installr-exe :
cd ./src && $(MAKE) install
install-Lua :
cd ./Lua && $(MAKE) install
install : install-exe install-Lua
clean :
check :
test : check
help :
@echo valid make targets:
###########################################################################
all install uninstall clean:
cd src && $(MAKE) $@
TAG = $(shell git describe --abbrev=0 --tags)
VERSION = $(shell echo $(TAG) | sed s/^v//)
FORMAT = tar.gz
dist:
@ if [ -n "`git tag --list $(TAG)`" ]; \
then \
git archive --verbose --format=$(FORMAT) \
--prefix=imapfilter-$(VERSION)/ \
--output=imapfilter-$(VERSION).$(FORMAT) v$(VERSION); \
echo "Created Git archive: imapfilter-$(VERSION).$(FORMAT)"; \
else \
echo "No such tag in the Git repository: $(TAG)"; \
fi
distclean:
rm -f imapfilter-*.*