test: Makefile.in should copy bitmap and wave files to build directory.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 29 May 2017 18:24:06 -0400
changeset 110540092cb66f341
parent 11053 dc895d39212c
child 11055 1f2cb42aa5d3
test: Makefile.in should copy bitmap and wave files to build directory.

I've lost count of the times I've forgotten to do this manually and wondered
why loopwave can't open sample.wav. :)
test/Makefile.in
     1.1 --- a/test/Makefile.in	Mon May 29 02:48:51 2017 -0400
     1.2 +++ b/test/Makefile.in	Mon May 29 18:24:06 2017 -0400
     1.3 @@ -67,7 +67,7 @@
     1.4  	testqsort$(EXE) \
     1.5  	controllermap$(EXE) \
     1.6  	
     1.7 -all: Makefile $(TARGETS)
     1.8 +all: Makefile $(TARGETS) copydatafiles
     1.9  
    1.10  Makefile: $(srcdir)/Makefile.in
    1.11  	$(SHELL) config.status $@
    1.12 @@ -297,3 +297,20 @@
    1.13  	rm -f Makefile
    1.14  	rm -f config.status config.cache config.log
    1.15  	rm -rf $(srcdir)/autom4te*
    1.16 +
    1.17 +
    1.18 +%.bmp: $(srcdir)/%.bmp
    1.19 +	cp $< $@
    1.20 +
    1.21 +%.wav: $(srcdir)/%.wav
    1.22 +	cp $< $@
    1.23 +
    1.24 +copydatafiles: copybmpfiles copywavfiles
    1.25 +.PHONY : copydatafiles
    1.26 +
    1.27 +copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
    1.28 +.PHONY : copybmpfiles
    1.29 +
    1.30 +copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
    1.31 +.PHONY : copywavfiles
    1.32 +