File: Makefile

package info (click to toggle)
chewmail 1.3-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 80 kB
  • sloc: perl: 157; makefile: 19
file content (23 lines) | stat: -rw-r--r-- 626 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
21
22
23
VERSION = $(shell grep '^my $$version' chewmail | perl -pe 's/^[^0-9]*([0-9\.]+).*$$/$$1/g')


all: chewmail.1

clean:
	rm -f chewmail.1 *~
	rm -rf chewmail-*

install: all
	install -d $(DESTDIR)/usr/bin
	install -m 755 chewmail $(DESTDIR)/usr/bin
	install -d $(DESTDIR)/usr/share/man/man1
	install -m 644 chewmail.1 $(DESTDIR)/usr/share/man/man1

dist: clean
	files=`ls` ; mkdir chewmail-$(VERSION) ; cp -r $$files chewmail-$(VERSION)
	tar --exclude=CVS --exclude=.cvsignore --exclude=.svn -zcf \
		chewmail-$(VERSION).tar.gz chewmail-$(VERSION)
	rm -rf chewmail-$(VERSION)

chewmail.1: chewmail
	pod2man chewmail chewmail.1