Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7dcf27f12a
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (47 sloc) 1.846 kB
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
Jump to Line
Something went wrong with that request. Please try again.