Skip to content

Commit 1735f9c

Browse files
Fix "make distcheck" when TMPDIR isn't set
Otherwise, we get this: GIT_DIR=./.git git archive --prefix=tinycbor-distcheck/ --format=tar HEAD | tar -xf - -C $TMPDIR tar: option requires an argument -- 'C' Signed-off-by: Thiago Macieira <[email protected]>
1 parent 4628a11 commit 1735f9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ docs:
160160

161161
dist: $(PACKAGE).tar.gz $(PACKAGE).zip
162162
distcheck: .git
163-
-$(RM) -r $$TMPDIR/tinycbor-distcheck
164-
GIT_DIR=$(SRCDIR).git git archive --prefix=tinycbor-distcheck/ --format=tar HEAD | tar -xf - -C $$TMPDIR
165-
cd $$TMPDIR/tinycbor-distcheck && $(MAKE) silentcheck
166-
$(RM) -r $$TMPDIR/tinycbor-distcheck
163+
-$(RM) -r $${TMPDIR-/tmp}/tinycbor-distcheck
164+
GIT_DIR=$(SRCDIR).git git archive --prefix=tinycbor-distcheck/ --format=tar HEAD | tar -xf - -C $${TMPDIR-/tmp}
165+
cd $${TMPDIR-/tmp}/tinycbor-distcheck && $(MAKE) silentcheck
166+
$(RM) -r $${TMPDIR-/tmp}/tinycbor-distcheck
167167

168168
release: .git
169169
$(MAKE) -f $(MAKEFILE) distcheck

0 commit comments

Comments
 (0)