summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2019-04-23 21:18:11 (GMT)
committerDmitry V. Levin <ldv@altlinux.org>2019-04-23 21:18:11 (GMT)
commit10726d4c56a54393ff105009077124472f0a369c (patch)
treecf7a1442ed55579dc08d8643d8c0155ed72b601a /tests/Makefile
parent7937e862554ae4cc8722dbf66f53c3da2259e0c5 (diff)
downloadlz4-10726d4c56a54393ff105009077124472f0a369c.zip
lz4-10726d4c56a54393ff105009077124472f0a369c.tar.gz
lz4-10726d4c56a54393ff105009077124472f0a369c.tar.bz2
test-amalgamation: use a single cat command
Use the list of prerequisites instead of listing those files manually, this way they will never fall out of sync. Also update the amalgamation example to use a single cat command. Fixes: a7e8d394 ("[amalgamation] add test") Fixes: b192c86b ("[amalgamation] lz4frame.c")
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index bcaf603..f327535 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -158,9 +158,7 @@ test32: test
.PHONY: test-amalgamation
test-amalgamation: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c
- cat $(LZ4DIR)/lz4.c > lz4_all.c
- cat $(LZ4DIR)/lz4hc.c >> lz4_all.c
- cat $(LZ4DIR)/lz4frame.c >> lz4_all.c
+ cat $^ > lz4_all.c
$(CC) -I$(LZ4DIR) -c lz4_all.c
$(RM) lz4_all.c