X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=8114d0bc4baea08251e7b0285ea1cc1972827727;hb=1c4ce01f78b112c2247a08f1a0dc9efb5ab3adca;hp=3e6dd584fc60715edf3f62f80d583f48118f3bc8;hpb=91e9e0b968a7c6cffe43f886d0aa71e710110582;p=debbugs.git diff --git a/Makefile b/Makefile index 3e6dd58..8114d0b 100644 --- a/Makefile +++ b/Makefile @@ -24,21 +24,23 @@ install_exec := install -m755 -p install_data := install -m644 -p PERL ?= /usr/bin/perl +# Some tests need to run under an UTF-8 locale. +UTF8_LOCALE ?= C.UTF-8 -all: build test +all: build build: $(PERL) Makefile.PL $(MAKE) -f Makefile.perl test: - $(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))' + LC_ALL=$(UTF8_LOCALE) $(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))' test_%: t/%.t - $(PERL) -MTest::Harness -I. -e 'runtests(q($<))' + LC_ALL=$(UTF8_LOCALE) $(PERL) -MTest::Harness -I. -e 'runtests(q($<))' testcover: - PERL5LIB=t/cover_lib/:. cover -test + LC_ALL=$(UTF8_LOCALE) PERL5LIB=t/cover_lib/:. cover -test clean: if [ -e Makefile.perl ]; then \ @@ -47,10 +49,8 @@ clean: install: install_mostfiles # install basic debbugs documentation - $(install_data) COPYING UPGRADE README debian/README.mail $(doc_dir) - - # configure debbugs - $(sbin_dir)/debbugsconfig + $(install_data) COPYING UPGRADE README.md debian/README.mail $(doc_dir) + $(MAKE) -f Makefile.perl install DESTDIR=$(DESTDIR) install_mostfiles: # create the directories if they aren't there