summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/README.md4
-rw-r--r--tests/Makefile4
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/README.md b/lib/README.md
index b753195..cf1505f 100644
--- a/lib/README.md
+++ b/lib/README.md
@@ -74,9 +74,7 @@ The following build macro can be selected at compilation time :
lz4 source code can be amalgamated into a single file.
One can combine all source code into `lz4_all.c` by using following command:
```
-cat lz4.c > lz4_all.c
-cat lz4hc.c >> lz4_all.c
-cat lz4frame.c >> lz4_all.c
+cat lz4.c lz4hc.c lz4frame.c > lz4_all.c
```
(`cat` file order is important) then compile `lz4_all.c`.
All `*.h` files present in `/lib` remain necessary to compile `lz4_all.c`.
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