-
Notifications
You must be signed in to change notification settings - Fork 68
/
Makefile
59 lines (47 loc) · 1.8 KB
/
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
55
56
57
58
59
PREFIX=/sw
ARCHITECTURE=i386
DISTRIBUTION=10.6
VERSION=`cat VERSION`
TEST_BASEPATH=$(PWD)/t/basepath
TESTS=.
all:
@echo "usage: $(MAKE) <target>"
@echo ""
@echo -e "\tcommit commit your changes"
@echo -e "\tbootstrap install a fresh fink installation"
@echo -e "\t PREFIX can be set, defaults to /sw"
@echo -e " ARCHITECTURE can also be set, defaults to i386"
@echo -e " DISTRIBUTION can also be set, defaults to 10.6"
@echo -e "\tinstall install to an existing fink installation"
@echo -e "\ttest perform tests on the fink code"
@echo -e "\tclean remove all extraneous files"
@echo ""
commit: test
@cvs commit
bootstrap: test
./bootstrap $(PREFIX)
install:
./inject.pl $(PREFIX)
test_setup:
./setup.sh $(TEST_BASEPATH) $(ARCHITECTURE)
manifest_check:
perl -MExtUtils::Manifest=fullcheck -e 'my($$missing, $$extra) = fullcheck;exit (@$$missing || @$$extra)'
test: manifest_check test_setup
@# must test with same perl binary as the one to be used to run fink
@# (which also must be coded into t/Services/execute_nonroot_okay.t)
cd t && ./testmore.pl && find ${TESTS} -name '*.t' | sort | PREFIX="$(PREFIX)" xargs /usr/bin/perl -I`pwd`/../perlmod -MTest::Harness -e 'runtests(@ARGV)'
# remove all files that are ignored by CVS
clean:
@# BUG: this for...`find` breaks if any dirname relative to the
@# current one contains whitespace
@for ignorefile in `find . -name .cvsignore`; do \
echo "cleaning $$ignorefile"; \
( cd `dirname $$ignorefile` && rm -f `cat .cvsignore` ); \
done
# maybe we should clean or ./setup.sh before this, to eliminate dups?
podcheck:
@find . -name '.svn' -prune -o \! -name '.#*' -type f -print | \
xargs grep -l '[=]head' | xargs podchecker
.PHONY: all test install
.SUFFIXES:
# vim: ts=4 sw=4 noet