Fix spacing and Edit Makefile (now run with make instead of make run)

This commit is contained in:
Jennifer Liu committed 2018-07-16 16:31:59 -07:00
1 parent b5806d33db
commit 1f7fa5cdd6
5 files changed
+40 -38

No files matched your search

+6 -7
View File
@@ -4,16 +4,15 @@ TEST_INPUT := ../../lib
TEST_OUTPUT := randomDict
ARG :=
all: main testrun test clean
all: main run clean
run: main rand clean
test: main testrun testshell clean
.PHONY: rand
rand:
.PHONY: run
run:
echo "Building a random dictionary with given arguments"
./main $(ARG)
main: main.o random.o libzstd.a
gcc main.o random.o libzstd.a -o main
@@ -34,8 +33,8 @@ testrun: main
zstd -be3 -D $(TEST_OUTPUT) -r $(TEST_INPUT) -q
rm -f $(TEST_OUTPUT)
.PHONY: test
test: test.sh
.PHONY: testshell
testshell: test.sh
sh test.sh
echo "Finish running test.sh"