Skip to content

Commit 6094158

Browse files
Add make recipe install_dlls
1 parent ec84197 commit 6094158

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ install: bin/shards$(EXE) man/shards.1.gz man/shard.yml.5.gz
8383
$(INSTALL) -m 0644 man/shards.1.gz "$(MANDIR)/man1"
8484
$(INSTALL) -m 0644 man/shard.yml.5.gz "$(MANDIR)/man5"
8585

86+
ifeq ($(WINDOWS),1)
87+
.PHONY: install_dlls
88+
install_dlls: bin/shards$(EXE) ## Install the dependent DLLs at DESTDIR (Windows only)
89+
$(INSTALL) -d -m 0755 "$(BINDIR)/"
90+
@ldd bin/shards$(EXE) | grep -iv ' => /c/windows/system32' | sed 's/.* => //; s/ (.*//' | xargs -t -i $(INSTALL) -m 0755 '{}' "$(BINDIR)/"
91+
endif
92+
8693
.PHONY: uninstall
8794
uninstall: ## Uninstall shards
8895
uninstall:

0 commit comments

Comments
 (0)