test-amalgamation: split the rule
Change test-amalgamation to follow each-rule-makes-a-single-target idiom.
Fixes: a7e8d394
("[amalgamation] add test")
This commit is contained in:
parent
8069d2ae6f
commit
0d3f85df65
@ -114,7 +114,7 @@ clean:
|
|||||||
frametest$(EXT) frametest32$(EXT) \
|
frametest$(EXT) frametest32$(EXT) \
|
||||||
fasttest$(EXT) roundTripTest$(EXT) \
|
fasttest$(EXT) roundTripTest$(EXT) \
|
||||||
datagen$(EXT) checkTag$(EXT) \
|
datagen$(EXT) checkTag$(EXT) \
|
||||||
frameTest$(EXT)
|
frameTest$(EXT) lz4_all.c
|
||||||
@$(RM) -rf $(TESTDIR)
|
@$(RM) -rf $(TESTDIR)
|
||||||
@echo Cleaning completed
|
@echo Cleaning completed
|
||||||
|
|
||||||
@ -156,11 +156,13 @@ test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install
|
|||||||
test32: CFLAGS+=-m32
|
test32: CFLAGS+=-m32
|
||||||
test32: test
|
test32: test
|
||||||
|
|
||||||
.PHONY: test-amalgamation
|
test-amalgamation: lz4_all.o
|
||||||
test-amalgamation: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c
|
|
||||||
cat $^ > lz4_all.c
|
lz4_all.o: lz4_all.c
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c lz4_all.c
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@
|
||||||
$(RM) lz4_all.c
|
|
||||||
|
lz4_all.c: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c
|
||||||
|
cat $^ > $@
|
||||||
|
|
||||||
test-install: lz4 lib liblz4.pc
|
test-install: lz4 lib liblz4.pc
|
||||||
lz4_root=.. ./test_install.sh
|
lz4_root=.. ./test_install.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user