[Commits] SDL: test: Makefile.in should copy bitmap and wave files to buil...

libsdl.org revision control commits-owner at libsdl.org
Mon May 29 15:24:13 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/0092cb66f341
changeset: 11054:0092cb66f341
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Mon May 29 18:24:06 2017 -0400
description:
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.  :)

diffstat:

 test/Makefile.in |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r dc895d39212c -r 0092cb66f341 test/Makefile.in
--- a/test/Makefile.in	Mon May 29 02:48:51 2017 -0400
+++ b/test/Makefile.in	Mon May 29 18:24:06 2017 -0400
@@ -67,7 +67,7 @@
 	testqsort$(EXE) \
 	controllermap$(EXE) \
 	
-all: Makefile $(TARGETS)
+all: Makefile $(TARGETS) copydatafiles
 
 Makefile: $(srcdir)/Makefile.in
 	$(SHELL) config.status $@
@@ -297,3 +297,20 @@
 	rm -f Makefile
 	rm -f config.status config.cache config.log
 	rm -rf $(srcdir)/autom4te*
+
+
+%.bmp: $(srcdir)/%.bmp
+	cp $< $@
+
+%.wav: $(srcdir)/%.wav
+	cp $< $@
+
+copydatafiles: copybmpfiles copywavfiles
+.PHONY : copydatafiles
+
+copybmpfiles: $(foreach bmp,$(wildcard $(srcdir)/*.bmp),$(notdir $(bmp)))
+.PHONY : copybmpfiles
+
+copywavfiles: $(foreach wav,$(wildcard $(srcdir)/*.wav),$(notdir $(wav)))
+.PHONY : copywavfiles
+


More information about the commits mailing list