This will shield trying to set those if the Makefile is being used from a
release tarball.
releases=sid
release=sid
+# These variables are used by Andrew in a git checkout for packaging and releasing.
+ifneq ("$(wildcard .git)", "")
build=dpkg-buildpackage -rfakeroot -i'(.git|.gitignore|testing)*' -I.git -I.gitignore -Itesting -tc -kC603FC4E600F1CECD1C8D97C4B53D931E4D3E863 --changes-option=-S --changes-option=-sa
ifeq ($(version),)
version=$(shell git tag -l | grep '^[0-9]' | sort -t"." -k 1,1 -k 2,2 -k 3,3 -n | tail -1)
DEBS=$(foreach release, $(releases), ../build/$(release)/$(deb))
RELEASE_FILES=$(orig_tarball) ../build/tarball/mythtv-status-${version}.tar.gz $(DEBS)
+endif
TEST_VERBOSE=0
TEST_FILES=t/*.t
test:
PERL_DL_NONLAZY=1 perl "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES)
-
clean:
@rm -rf build