Use `make -C dir` instead of `cd dir && make` idiom.

Also remove unused variables from t/Makefile

Signed-off-by: Peter Grayson <[email protected]>
---
 Makefile   | 6 +++---
 t/Makefile | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 63a21f34..b05f9f3b 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ install:
  $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force

 doc:
- cd Documentation && $(MAKE) all
+ $(MAKE) -C Documentation all

 install-doc:
  $(MAKE) -C Documentation install
@@ -23,7 +23,7 @@ install-html:

 test:
  $(PYTHON) setup.py build
- cd t && $(MAKE) all
+ $(MAKE) -C t all

 test_patches:
  for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
@@ -32,7 +32,7 @@ test_patches:

 clean:
  for dir in Documentation t; do \
- (cd $$dir && $(MAKE) clean); \
+ $(MAKE) -C $$dir clean; \
  done
  rm -rf build
  rm -f stgit/*.pyc
diff --git a/t/Makefile b/t/Makefile
index e781131e..9e9be1b7 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -3,9 +3,6 @@
 # Copyright (c) 2005 Junio C Hamano
 #

-SHELL_PATH ?= $(SHELL)
-TAR ?= $(TAR)
-
 all:
  $(PYTHON) test.py

-- 
2.12.0

_______________________________________________
stgit-users mailing list
[email protected]
https://mail.gna.org/listinfo/stgit-users

Reply via email to