comparison Makefile @ 34439:9441cb91bddd

Put test-related code in Makefile under ifdef FATE_SAMPLES. Hopefully fixes the compile issues a lot of people experienced (though I could not reproduce).
author reimar
date Sun, 08 Jan 2012 09:25:45 +0000
parents 8034d7f74800
children 4496c52ff7f1
comparison
equal deleted inserted replaced
34438:410531a18351 34439:9441cb91bddd
996 lossless-audio/% mp3-conformance/% musepack/% nellymoser/% \ 996 lossless-audio/% mp3-conformance/% musepack/% nellymoser/% \
997 qcp/% \ 997 qcp/% \
998 qt-surge-suite/% real/ra% sipr/% truespeech/% vorbis/% \ 998 qt-surge-suite/% real/ra% sipr/% truespeech/% vorbis/% \
999 vqf/% w64/% wmapro/% wmavoice/% \ 999 vqf/% w64/% wmapro/% wmavoice/% \
1000 1000
1001 # running wildcard with empty FATE_SAMPLES seems to cause a lot of issues
1002 ifdef FATE_SAMPLES
1001 ALLSAMPLES_FULLPATH = $(wildcard $(FATE_SAMPLES)/*/*.*) 1003 ALLSAMPLES_FULLPATH = $(wildcard $(FATE_SAMPLES)/*/*.*)
1002 ALLSAMPLES = $(patsubst $(FATE_SAMPLES)/%,%,$(ALLSAMPLES_FULLPATH)) 1004 ALLSAMPLES = $(patsubst $(FATE_SAMPLES)/%,%,$(ALLSAMPLES_FULLPATH))
1003 SAMPLES := $(filter-out $(BROKEN_SAMPLES),$(ALLSAMPLES)) 1005 SAMPLES := $(filter-out $(BROKEN_SAMPLES),$(ALLSAMPLES))
1004 SAMPLES := $(filter-out $(AUDIO_ONLY_SAMPLES),$(SAMPLES)) 1006 SAMPLES := $(filter-out $(AUDIO_ONLY_SAMPLES),$(SAMPLES))
1005 RESULTS = $(patsubst %,tests/res/%.md5,$(SAMPLES)) 1007 RESULTS = $(patsubst %,tests/res/%.md5,$(SAMPLES))
1006 1008
1007 fatetest: $(RESULTS) 1009 fatetest: $(RESULTS)
1008 1010
1009 tests/res/%.md5: mplayer$(EXESUF) $(FATE_SAMPLES)/% 1011 tests/res/%.md5: mplayer$(EXESUF) $(FATE_SAMPLES)/%
1010 @tests/faterun.sh $* 1012 @tests/faterun.sh $*
1013 endif
1011 1014
1012 1015
1013 1016
1014 ###### tests / tools ####### 1017 ###### tests / tools #######
1015 1018