Skip to content

Commit

Permalink
test: Makefile.in should copy bitmap and wave files to build directory.
Browse files Browse the repository at this point in the history
I've lost count of the times I've forgotten to do this manually and wondered
why loopwave can't open sample.wav.  :)
  • Loading branch information
icculus committed May 29, 2017
1 parent b135557 commit 5dc3501
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/Makefile.in
Expand Up @@ -67,7 +67,7 @@ TARGETS = \
testqsort$(EXE) \
controllermap$(EXE) \

all: Makefile $(TARGETS)
all: Makefile $(TARGETS) copydatafiles

Makefile: $(srcdir)/Makefile.in
$(SHELL) config.status $@
Expand Down Expand Up @@ -297,3 +297,20 @@ distclean: clean
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

0 comments on commit 5dc3501

Please sign in to comment.