remove nm targets from Makefile

This commit is contained in:
2026-03-20 03:10:19 +09:00
parent c8f9b87e2c
commit aaa0f5bbdf

View File

@@ -33,31 +33,7 @@ systemd-unload:
rm -f $(HOME)/.config/systemd/user/bw-agent.service
systemctl --user daemon-reload
NM_NAME = com.8bit.bitwarden.json
nm-firefox:
ifeq ($(shell uname),Darwin)
mkdir -p $(HOME)/Library/Application\ Support/Mozilla/NativeMessagingHosts
sed 's|/Users/USER/.local/bin|$(PREFIX)|' docs/$(NM_NAME).firefox \
> $(HOME)/Library/Application\ Support/Mozilla/NativeMessagingHosts/$(NM_NAME)
else
mkdir -p $(HOME)/.mozilla/native-messaging-hosts
sed 's|/Users/USER/.local/bin|$(PREFIX)|' docs/$(NM_NAME).firefox \
> $(HOME)/.mozilla/native-messaging-hosts/$(NM_NAME)
endif
nm-chromium:
ifeq ($(shell uname),Darwin)
mkdir -p $(HOME)/Library/Application\ Support/Google/Chrome/NativeMessagingHosts
sed 's|/Users/USER/.local/bin|$(PREFIX)|' docs/$(NM_NAME).chromium \
> $(HOME)/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/$(NM_NAME)
else
mkdir -p $(HOME)/.config/google-chrome/NativeMessagingHosts
sed 's|/Users/USER/.local/bin|$(PREFIX)|' docs/$(NM_NAME).chromium \
> $(HOME)/.config/google-chrome/NativeMessagingHosts/$(NM_NAME)
endif
clean:
cargo clean
.PHONY: all install uninstall launchd launchd-unload systemd systemd-unload nm-firefox nm-chromium clean
.PHONY: all install uninstall launchd launchd-unload systemd systemd-unload clean