tests: use Make variable for "rm"
authorTJ <hacker@iam.tj>
Tue, 29 Mar 2016 16:25:58 +0000 (17:25 +0100)
committerTJ <hacker@iam.tj>
Tue, 29 Mar 2016 16:25:58 +0000 (17:25 +0100)
Signed-off-by: TJ <hacker@iam.tj>
testsuite/Makefile

index fff51c9..12ac45f 100644 (file)
@@ -11,6 +11,7 @@ OPTS = -t -q
 EXE := ../$(PROG)
 TEST_DIR := $(shell mktemp --directory )
 CP := cp
+RM := rm -f
 SHA := sha1sum
 SHASUM := $(shell which $(SHA) )
 HDR_ORIG := header_test.bin
@@ -18,7 +19,7 @@ HDR_TEST := $(TEST_DIR)/header_test.bin
 CHK_HDR_ORIG=$(shell $(SHASUM) $(HDR_TEST) )
 
 tests: banner test_nochange test_man_nomatch test_man_match
-       -rm -rf $(TEST_DIR)
+       -$(RM) -r $(TEST_DIR)
 
 banner:
        @echo "Starting tests"