build: fix out-of-tree build
* Makefile (TCC-VERSION): Use top_srcdir.
This commit is contained in:
2
Makefile
2
Makefile
@ -375,7 +375,7 @@ config.mak:
|
|||||||
|
|
||||||
# create release tarball from *current* git branch (including tcc-doc.html
|
# create release tarball from *current* git branch (including tcc-doc.html
|
||||||
# and converting two files to CRLF)
|
# and converting two files to CRLF)
|
||||||
TCC-VERSION := tcc-$(shell cat VERSION)
|
TCC-VERSION := tcc-$(shell cat $(top_srcdir)/VERSION)
|
||||||
tar: tcc-doc.html
|
tar: tcc-doc.html
|
||||||
mkdir $(TCC-VERSION)
|
mkdir $(TCC-VERSION)
|
||||||
( cd $(TCC-VERSION) && git --git-dir ../.git checkout -f )
|
( cd $(TCC-VERSION) && git --git-dir ../.git checkout -f )
|
||||||
|
|||||||
Reference in New Issue
Block a user