Skip to content

Commit

Permalink
Fix "make distcheck" when TMPDIR isn't set
Browse files Browse the repository at this point in the history
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 <thiago.macieira@intel.com>
  • Loading branch information
thiagomacieira committed Jul 31, 2016
1 parent 4628a11 commit 1735f9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ docs:

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

release: .git
$(MAKE) -f $(MAKEFILE) distcheck
Expand Down

0 comments on commit 1735f9c

Please sign in to comment.