Skip to content

Commit

Permalink
make: use 'make -C' instead of 'cd && make'
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Aug 4, 2016
1 parent 7be60c9 commit 6307275
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,18 @@ bin/iptb: iptb_src $(call find_go_files, $(IPTB_SRC)) IPFS-BUILD-OPTIONS
test: test_expensive

test_expensive: verify_gofmt
cd sharness && make TEST_EXPENSIVE=1
cd 3nodetest && make
cd dependencies && make
make -C sharness TEST_EXPENSIVE=1
make -C 3nodetest
make -C dependencies

test_cheap: verify_gofmt
cd sharness && make
cd 3nodetest && make
make -C sharness
make -C 3nodetest

test_race: verify_gofmt
cd sharness && make GOFLAGS=-race TEST_EXPENSIVE=1
cd 3nodetest && make GOFLAGS=-race
cd dependencies && make GOFLAGS=-race
make -C sharness GOFLAGS=-race TEST_EXPENSIVE=1
make -C 3nodetest GOFLAGS=-race
make -C dependencies GOFLAGS=-race

# Misc

Expand Down
2 changes: 1 addition & 1 deletion test/sharness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $(SHARNESS): FORCE
lib/install-sharness.sh

bin/%: FORCE
cd .. && make GOFLAGS=$(GOFLAGS) $@
make -C .. GOFLAGS=$(GOFLAGS) $@

race:
make GOFLAGS=-race all
Expand Down

0 comments on commit 6307275

Please sign in to comment.