Commit 67e9132dd560bc242d6f6a862c6916e13bdfcf9a

Sam Lantinga 2020-12-20T12:22:28

Fixed circular dependency problem when building in the test directory

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/Makefile.in b/test/Makefile.in
index 4e514ff..8c3bbf2 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -325,7 +325,7 @@ distclean: clean
 	rm -f config.status config.cache config.log
 	rm -rf $(srcdir)/autom4te*
 
-
+ifneq ($(srcdir), .)
 %.bmp: $(srcdir)/%.bmp
 	cp $< $@
 
@@ -334,6 +334,7 @@ distclean: clean
 
 %.dat: $(srcdir)/%.dat
 	cp $< $@
+endif
 
 copydatafiles: copybmpfiles copywavfiles copydatfiles
 .PHONY : copydatafiles