diff --git a/.gitignore b/.gitignore index f8fbca50..f62d0e49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ /venv local.mk -**/build/ diff --git a/Makefile b/Makefile index 7c6eef71..9f554226 100644 --- a/Makefile +++ b/Makefile @@ -421,14 +421,14 @@ tesseract/configure: tesseract # Build and install Tesseract. $(BIN)/tesseract: tesseract/configure - mkdir -p tesseract/build - cd tesseract/build && ../configure --disable-openmp --disable-shared --prefix="$(VIRTUAL_ENV)" CXXFLAGS="-g -O2 -fPIC" - cd tesseract/build && $(MAKE) install + mkdir -p $(VIRTUAL_ENV)/build/tesseract + cd $(VIRTUAL_ENV)/build/tesseract && $(CURDIR)/tesseract/configure --disable-openmp --disable-shared --prefix="$(VIRTUAL_ENV)" CXXFLAGS="-g -O2 -fPIC" + cd $(VIRTUAL_ENV)/build/tesseract && $(MAKE) install clean: clean-tesseract .PHONY: clean-tesseract clean-tesseract: - $(RM) -r tesseract/build + $(RM) -r $(VIRTUAL_ENV)/build/tesseract endif # do not delete intermediate targets: