File: Makefile

package info (click to toggle)
imapfilter 1%3A2.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 476 kB
  • sloc: ansic: 4,425; makefile: 83
file content (20 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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-*.*