Skip to content

Commit

Permalink
build: chown /usr/local/share/libpostal
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Dec 19, 2024
1 parent 5394d9d commit e830ed7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ else
endif

install-linux:
$(SUDO) mkdir -p /usr/local/share/libpostal
$(SUDO) chown -R $(USER):$$(id -gn) /usr/local/share/libpostal
@$(MAKE) install-libpostal

install-macos:
Expand All @@ -62,6 +64,8 @@ ifeq ($(ARCH),arm64)
else
@echo "Intel architecture detected. SSE2 optimizations will be enabled."
endif
$(SUDO) mkdir -p /usr/local/share/libpostal
$(SUDO) chown -R $(USER):$$(id -gn) /usr/local/share/libpostal
@$(MAKE) install-libpostal

install-windows:
Expand All @@ -72,16 +76,16 @@ install-libpostal:
@echo "Cloning libpostal repository..."
git clone https://github.com/openvenues/libpostal || true
cd libpostal && \
if [ "$(detected_OS)" = "Windows" ]; then \
cp -rf windows/* ./ ; \
fi && \
./bootstrap.sh && \
./configure $(CONFIGURE_FLAGS) && \
make -j$(shell nproc || echo 4) && \
if [ "$(detected_OS)" = "Windows" ]; then \
make install && \
make download-models; \
make install; \
else \
$(SUDO) mkdir -p /usr/local/share/libpostal && \
$(SUDO) make install && \
$(SUDO) make download-models; \
$(SUDO) make install; \
fi

.PHONY: install install-linux install-macos install-windows install-libpostal
Expand Down

0 comments on commit e830ed7

Please sign in to comment.