aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: bc2719bcdc62d5781ac10b9a1259f41223f9b5a2 (plain)
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
NAME=isocheck
VERSION=0.1.0
PERL_VENDORLIB=$(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)

ALL=
PM=Isocheck.pm
POD=${name}.pod

all:

clean:
	rm -rf *~
	rm -rf t/*~
	rm -rf image_tests/*~
	rm -fr image_tests/*/*~

cleandist: clean
	rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2

install: $(ALL) man
	install -d $(PREFIX)/usr/bin
	install -m755 isocheck.pl $(PREFIX)/usr/bin/isocheck
	install -d $(PREFIX)/$(PERL_VENDORLIB)/Isocheck
	install Isocheck.pm $(PREFIX)/$(PERL_VENDORLIB)/Isocheck.pm
	install image_tests $(PREFIX)/$(PERL_VENDORLIB)/Isocheck/image_tests

tar: export
	tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
	rm -rf $(NAME)-$(VERSION)

test:
	prove t/

man:

export:
	svn export -q -rBASE . $(NAME)-$(VERSION)

dist: cleandist export tar