]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Portability: Don't use the $(var:%=%) construction
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 16 Jul 2010 16:16:49 +0000 (18:16 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 16 Jul 2010 16:16:49 +0000 (18:16 +0200)
Sadly, it seems to not work with some makes, e.g. on HP-UP.

Makefile.in

index 0e97f9b6a4c7ed1c05b4d0c10595cacb30572a14..70f703d9cea29d0f2a353a9ea4259f61b2526615 100644 (file)
@@ -25,9 +25,9 @@ base_objs = $(base_sources:.c=.o)
 ccache_sources = main.c $(base_sources) @extra_sources@
 ccache_objs = $(ccache_sources:.c=.o)
 
-test_suites = util
-test_suite_files = $(test_suites:%=$(srcdir)/test/test_%.c)
-test_sources = test/main.c test/framework.c $(test_suite_files)
+test_suites = \
+    $(srcdir)/test/test_util.c
+test_sources = test/main.c test/framework.c $(test_suites)
 test_objs = $(test_sources:.c=.o)
 
 all_sources = $(ccache_sources) $(test_sources)
@@ -71,8 +71,8 @@ test/main$(EXEEXT): $(base_objs) $(test_objs)
 
 test/main.o: test/suites.h
 
-test/suites.h: $(test_suite_files) Makefile
-       sed -n 's/TEST_SUITE(\(.*\))/SUITE(\1)/p' $(test_suite_files) >$@
+test/suites.h: $(test_suites) Makefile
+       sed -n 's/TEST_SUITE(\(.*\))/SUITE(\1)/p' $(test_suites) >$@
 
 .PHONY: check
 check: test