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. :)
This commit is contained in:
parent
314b1b14e1
commit
f2be7cdc96
1 changed files with 18 additions and 1 deletions
|
@ -67,7 +67,7 @@ TARGETS = \
|
|||
testqsort$(EXE) \
|
||||
controllermap$(EXE) \
|
||||
|
||||
all: Makefile $(TARGETS)
|
||||
all: Makefile $(TARGETS) copydatafiles
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in
|
||||
$(SHELL) config.status $@
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue